mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 02:44:50 +00:00
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:
@@ -114,19 +114,23 @@ public class TicTacToe extends GameBase implements Runnable {
|
||||
running = false;
|
||||
addSendToQueue("SVR GAME WIN {PLAYERONESCORE: \"<score speler1>\", PLAYERTWOSCORE: \"" +
|
||||
"<score speler2>\", COMMENT: \"<commentaar op resultaat>\"}\n");
|
||||
break;
|
||||
}
|
||||
case State.DRAW:{
|
||||
// Draw
|
||||
running = false;
|
||||
addSendToQueue("SVR GAME DRAW {PLAYERONESCORE: \"<score speler1>\", PLAYERTWOSCORE: \"" +
|
||||
"<score speler2>\", COMMENT: \"<commentaar op resultaat>\"}\n");
|
||||
break;
|
||||
}
|
||||
case State.NORMAL:{
|
||||
// Valid move but not end of game
|
||||
addSendToQueue("SVR GAME YOURTURN");
|
||||
break;
|
||||
}
|
||||
case State.INVALID:{
|
||||
// Invalid move
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user