If I have a separate class for a Piece, and a separate class for a Board, how do I tell the piece to move when they're separate of each other?
<p>The Board class has an 8x8 2D-array of <code>Piece</code>s, so I can obviously move a piece with the Board class, by doing <code>board.move(piece1, 3, left)</code> for instance, but there's no way I could simply tell the piece to move, like <code>piece1.move(3, left)</code>, as there's no way for it to know anything about the board (short of passing it in as a parameter), so it couldn't move itself to a specific index, or know if a piece already occupies this index, or if it's being told to move outside of the bounds of the array.</p>
