Implementing Move Method for a board game. Need clear relation on how to?
<p>Implementing Move Method for a board game. Need clear relation on how to?
(This is not a chess board game)</p>

<p>I have the following class so far:</p>

<pre><code>-board: 2D array Representation of the Board with each element as boardUnit. Includes boundaries too.
-boardUnit: a unit of land on the board. 
-KingPiece: represents king character. 
-SoliderPiece: represents solider character.
-MagicianPiece: represents Magician character.
</code></pre>

<p>Now, I need to know how to relate the piece with the board class -
I am planning to have a player class which represents a player. the player class is going to have a list of pieces the player has and the pieces is to be placed on a board position.</p>

<p>Any ideas about the piece and board relationship? Any idea on how the design should be when calling the move method? The problem here is the piece should know about the board and the board should know what piece is on what position.</p>
