This commit is contained in:
Aubin DORIVAL
2025-04-07 09:16:07 +02:00
parent 4383826463
commit 09c2ad459b

View File

@@ -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;
}