remove board from constructor

This commit is contained in:
2025-04-16 19:29:31 +02:00
parent bee5e613bb
commit 17ef882d44
5 changed files with 13 additions and 21 deletions

View File

@@ -4,7 +4,6 @@ import chess.ai.DumbAI;
import chess.controller.CommandExecutor;
import chess.controller.commands.NewGameCommand;
import chess.controller.event.GameAdaptator;
import chess.model.ChessBoard;
import chess.model.Color;
import chess.model.Game;
import chess.pgn.PgnExport;
@@ -12,7 +11,7 @@ import chess.view.simplerender.Window;
public class SwingMain {
public static void main(String[] args) {
Game game = new Game(new ChessBoard());
Game game = new Game();
CommandExecutor commandExecutor = new CommandExecutor(game);
Window window = new Window(commandExecutor, false);