1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-02 04:37:47 +00:00

Fix chess board broadcast

This commit is contained in:
Rafael Damasceno 2024-05-26 23:22:04 +01:00
parent dda95f1f5f
commit b233bddab5

View file

@ -167,14 +167,17 @@ public class GameChess extends GamehallGame {
if (this.board.isDraw()) {
this.gameFinished = true;
this.showChat("The chess game has ended in a draw");
this.broadcastMap();
return;
} else if (this.board.isStaleMate()) {
this.gameFinished = true;
this.showChat("The chess game has encountered a stalemate");
this.broadcastMap();
return;
} else if (this.board.isMated()) {
this.gameFinished = true;
this.showChat(player.getDetails().getName() + " has won the chess game");
this.broadcastMap();
return;
}