aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user