Update src/main/java/org/toop/game/tictactoe/TicTacToe.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Bas Antonius de Jong
2025-09-18 17:26:05 +02:00
parent 756cc58b10
commit cacf9a29e8

View File

@@ -114,19 +114,23 @@ public class TicTacToe extends GameBase implements Runnable {
running = false; running = false;
addSendToQueue("SVR GAME WIN {PLAYERONESCORE: \"<score speler1>\", PLAYERTWOSCORE: \"" + addSendToQueue("SVR GAME WIN {PLAYERONESCORE: \"<score speler1>\", PLAYERTWOSCORE: \"" +
"<score speler2>\", COMMENT: \"<commentaar op resultaat>\"}\n"); "<score speler2>\", COMMENT: \"<commentaar op resultaat>\"}\n");
break;
} }
case State.DRAW:{ case State.DRAW:{
// Draw // Draw
running = false; running = false;
addSendToQueue("SVR GAME DRAW {PLAYERONESCORE: \"<score speler1>\", PLAYERTWOSCORE: \"" + addSendToQueue("SVR GAME DRAW {PLAYERONESCORE: \"<score speler1>\", PLAYERTWOSCORE: \"" +
"<score speler2>\", COMMENT: \"<commentaar op resultaat>\"}\n"); "<score speler2>\", COMMENT: \"<commentaar op resultaat>\"}\n");
break;
} }
case State.NORMAL:{ case State.NORMAL:{
// Valid move but not end of game // Valid move but not end of game
addSendToQueue("SVR GAME YOURTURN"); addSendToQueue("SVR GAME YOURTURN");
break;
} }
case State.INVALID:{ case State.INVALID:{
// Invalid move // Invalid move
break;
} }
} }
} }