This commit is contained in:
@@ -4,7 +4,7 @@ import chess.ai.minimax.AlphaBetaAI;
|
||||
import chess.ai.minimax.AlphaBetaConsolePrinter;
|
||||
import chess.controller.CommandExecutor;
|
||||
import chess.controller.commands.NewGameCommand;
|
||||
import chess.controller.event.GameAdaptator;
|
||||
import chess.controller.event.GameAdapter;
|
||||
import chess.model.Color;
|
||||
import chess.model.Game;
|
||||
import chess.pgn.PgnExport;
|
||||
@@ -31,7 +31,7 @@ public class SwingMain {
|
||||
// Window window2 = new Window(ai2.getSimulation(), false);
|
||||
// ai2.getSimulation().addListener(window2);
|
||||
|
||||
commandExecutor.addListener(new GameAdaptator(){
|
||||
commandExecutor.addListener(new GameAdapter(){
|
||||
@Override
|
||||
public void onGameEnd() {
|
||||
System.out.println(PgnExport.exportGame(game));
|
||||
|
||||
Reference in New Issue
Block a user