console
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user