better termination

This commit is contained in:
2025-04-12 13:04:48 +02:00
parent de733fcea2
commit 39c289cc47
4 changed files with 18 additions and 6 deletions

View File

@@ -158,7 +158,7 @@ public class Console implements GameListener {
public void gameEnded(){
System.out.println("Thank you for playing!");
System.exit(0);
this.commandExecutor.close();
}
@Override