dev #12

Merged
Persson-dev merged 44 commits from dev into main 2025-05-17 15:05:24 +00:00
Showing only changes of commit 1da185678c - Show all commits

View File

@@ -30,6 +30,7 @@ public class PgnTest {
commandExecutor.addListener(new GameAdapter() {
@Override
public void onGameEnd() {
// does not work with this for some reason ...
synchronized (game) {
game.notifyAll();
}
@@ -85,17 +86,17 @@ public class PgnTest {
commandExecutor.close();
synchronized (game) {
game.notifyAll();
synchronized (this) {
notifyAll();
}
});
commandExecutor.executeCommand(new NewGameCommand());
synchronized (game) {
synchronized (this) {
try {
game.wait();
wait();
} catch (InterruptedException e) {
e.printStackTrace();
}