aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

This commit is contained in:
2025-04-25 17:03:28 +02:00
parent 098b605799
commit cff2d92070
7 changed files with 159 additions and 22 deletions

View File

@@ -1,9 +1,20 @@
package chess;
import chess.view.DDDrender.Window;
import chess.controller.CommandExecutor;
import chess.controller.commands.NewGameCommand;
import chess.model.Game;
import chess.view.DDDrender.DDDView;
public class OpenGLMain {
public static void main(String[] args) {
new Window().run();
Game game = new Game();
CommandExecutor commandExecutor = new CommandExecutor(game);
DDDView ddd = new DDDView(commandExecutor);
commandExecutor.addListener(ddd);
commandExecutor.executeCommand(new NewGameCommand());
ddd.run();
}
}