simplify mains
This commit is contained in:
@@ -11,12 +11,10 @@ import chess.view.consolerender.Console;
|
||||
|
||||
public class ConsoleMain {
|
||||
public static void main(String[] args) {
|
||||
CommandExecutor commandExecutor = new CommandExecutor();
|
||||
|
||||
Game game = new Game(new ChessBoard());
|
||||
Console console = new Console(commandExecutor);
|
||||
CommandExecutor commandExecutor = new CommandExecutor(game);
|
||||
|
||||
commandExecutor.setGame(game);
|
||||
Console console = new Console(commandExecutor);
|
||||
commandExecutor.addListener(console);
|
||||
|
||||
commandExecutor.executeCommand(new NewGameCommand());
|
||||
|
||||
Reference in New Issue
Block a user