message when check
This commit is contained in:
parent
16e53cc810
commit
b3006d9708
|
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue