25 lines
666 B
Java
25 lines
666 B
Java
/*
|
|
* 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.ChessBoard;
|
|
import chess.model.Game;
|
|
import chess.view.simplerender.Window;
|
|
|
|
public class App {
|
|
public static void main(String[] args) {
|
|
CommandExecutor commandExecutor = new CommandExecutor();
|
|
|
|
Game game = new Game(new ChessBoard());
|
|
Window window = new Window(commandExecutor);
|
|
|
|
commandExecutor.setGame(game);
|
|
commandExecutor.setOutputSystem(window);
|
|
|
|
commandExecutor.executeCommand(new NewGameCommand());
|
|
}
|
|
}
|