diff --git a/src/GomokuGame.java b/src/GomokuGame.java index dfc6a48..df66ebc 100644 --- a/src/GomokuGame.java +++ b/src/GomokuGame.java @@ -58,16 +58,18 @@ public class GomokuGame { } public void startGame() { + } /** * Place the token on the cell where the player play. * @param Player get player to play the cell. */ - public void play(Player player) { + public GomokuCell play(Player player) { GomokuCell cellToPlay = player.chooseMove(board); cellToPlay.setState(player.color); + return cellToPlay; }