message when check

This commit is contained in:
HP 2025-05-23 00:39:32 +02:00
parent 16e53cc810
commit b3006d9708
1 changed files with 2 additions and 3 deletions

View File

@ -737,7 +737,7 @@ private boolean canCastleQueenside(boolean isWhite) {
}
}
}
System.out.println("Check Mate, game over");
return true; // King is in check AND no legal moves checkmate
}
public boolean isStalemate(boolean isWhite) {
@ -753,8 +753,7 @@ private boolean canCastleQueenside(boolean isWhite) {
}
}
}
System.out.println("Stale Mate, game over");
return true; // King not in check but has no legal moves stalemate
}
}