simplify mains

This commit is contained in:
2025-04-12 11:20:12 +02:00
parent 8190090adc
commit 5cf00309b3
3 changed files with 9 additions and 9 deletions

View File

@@ -13,7 +13,11 @@ public class CommandExecutor {
private final GameDispatcher dispatcher;
public CommandExecutor() {
this.game = null;
this(null);
}
public CommandExecutor(Game game) {
this.game = game;
this.dispatcher = new GameDispatcher();
}