Add getCurrentPlayer() method to ChessEngine

ChessEngine
Justin 2025-06-18 19:37:22 +02:00
parent c7a3c9918f
commit a70a9a3eb3
1 changed files with 4 additions and 0 deletions

View File

@ -83,4 +83,8 @@ public class ChessEngine {
return board.isDraw();
}
public String getCurrentPlayer() {
return board.getSideToMove().toString(); // "WHITE" oder "BLACK"
}
}