/* * This Java source file was generated by the Gradle 'init' task. */ package chess; import chess.controller.CommandExecutor; import chess.controller.commands.NewGameCommand; import chess.model.Game; import chess.view.consolerender.Console; public class ConsoleMain { public static void main(String[] args) { Game game = new Game(); CommandExecutor commandExecutor = new CommandExecutor(game); Console console = new Console(commandExecutor); commandExecutor.addListener(console); commandExecutor.executeCommand(new NewGameCommand()); } }