From f42831ea78860cd9e49a7e6fb05d02183b700a47 Mon Sep 17 00:00:00 2001 From: Stef Date: Thu, 18 Sep 2025 15:53:54 +0200 Subject: [PATCH] Update TicTacToe.java --- src/main/java/org/toop/game/tictactoe/TicTacToe.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/toop/game/tictactoe/TicTacToe.java b/src/main/java/org/toop/game/tictactoe/TicTacToe.java index 86edebc..7b3500d 100644 --- a/src/main/java/org/toop/game/tictactoe/TicTacToe.java +++ b/src/main/java/org/toop/game/tictactoe/TicTacToe.java @@ -70,14 +70,15 @@ public class TicTacToe extends GameBase implements Runnable { while (true) { ParsedCommand cmd = takeFromCommandQueue(); - // Make sure command was received + // Get next command if there was no command if (cmd == null){ continue; } + // Do something based which command was given switch (cmd.command) { case TicTacToeServerCommand.MOVE:{ - // TODO: Check if it is this player's turn, not required for local or AI play. + // TODO: Check if it is this player's turn, not required for local play (I think?). // Convert given argument to integer Object arg = cmd.arguments.getFirst(); @@ -111,7 +112,6 @@ public class TicTacToe extends GameBase implements Runnable { } } - // TODO: Game use the commandQueue to get the commands. } }