juste better

This commit is contained in:
2025-04-02 10:54:14 +02:00
parent 1b9ff5bdd1
commit 97cafb903a
12 changed files with 212 additions and 131 deletions

View File

@@ -3,16 +3,22 @@
*/
package chess;
import chess.io.CommandExecutor;
import chess.io.commands.NewGameCommand;
import chess.model.ChessBoard;
import chess.model.Game;
import chess.simplerender.Window;
public class App {
public String getGreeting() {
return "Hello World!";
}
public static void main(String[] args) {
new Window(new Game(new ChessBoard()));
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());
}
}