2ligne
This commit is contained in:
@@ -58,16 +58,18 @@ public class GomokuGame {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void startGame() {
|
public void startGame() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Place the token on the cell where the player play.
|
* Place the token on the cell where the player play.
|
||||||
* @param Player get player to play the cell.
|
* @param Player get player to play the cell.
|
||||||
*/
|
*/
|
||||||
public void play(Player player) {
|
public GomokuCell play(Player player) {
|
||||||
|
|
||||||
GomokuCell cellToPlay = player.chooseMove(board);
|
GomokuCell cellToPlay = player.chooseMove(board);
|
||||||
cellToPlay.setState(player.color);
|
cellToPlay.setState(player.color);
|
||||||
|
return cellToPlay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user