Files
3DChess/app/src/main/java/chess/OpenGLMain.java
2025-04-26 12:00:48 +02:00

22 lines
565 B
Java

package chess;
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) {
Game game = new Game();
CommandExecutor commandExecutor = new CommandExecutor(game);
DDDView ddd = new DDDView(commandExecutor);
commandExecutor.addListener(ddd);
commandExecutor.executeCommand(new NewGameCommand());
ddd.run();
commandExecutor.close();
}
}