This commit is contained in:
Janet-Doe
2025-04-10 11:41:29 +02:00
parent 7aa129bbc6
commit 746fa4d330
3 changed files with 178 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import chess.controller.CommandExecutor;
import chess.controller.commands.NewGameCommand;
import chess.model.ChessBoard;
import chess.model.Game;
import chess.view.consolerender.Console;
import chess.view.simplerender.Window;
public class App {
@@ -14,10 +15,10 @@ public class App {
CommandExecutor commandExecutor = new CommandExecutor();
Game game = new Game(new ChessBoard());
Window window = new Window(commandExecutor);
Console console = new Console(commandExecutor);
commandExecutor.setGame(game);
commandExecutor.setOutputSystem(window);
commandExecutor.setOutputSystem(console);
commandExecutor.executeCommand(new NewGameCommand());
}