feat: pgn parser

This commit is contained in:
2025-05-03 20:46:20 +02:00
parent b2a6b23681
commit b18b53f195
21 changed files with 384 additions and 219 deletions

View File

@@ -74,15 +74,15 @@ public class Window extends JFrame implements GameListener {
}
private void buildButtons(JPanel bottom) {
castlingButton.addActionListener((_) -> {
castlingButton.addActionListener((event) -> {
sendCommand(new CastlingCommand(false));
});
bigCastlingButton.addActionListener((_) -> {
bigCastlingButton.addActionListener((event) -> {
sendCommand(new CastlingCommand(true));
});
undoButton.addActionListener((_) -> {
undoButton.addActionListener((event) -> {
sendCommand(new UndoCommand());
});