better termination
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user