From 09c2ad459b93e1aa1ba1fee96c9bd8885ab2791a Mon Sep 17 00:00:00 2001 From: Aubin DORIVAL Date: Mon, 7 Apr 2025 09:16:07 +0200 Subject: [PATCH] 2ligne --- src/GomokuGame.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }