Super IA #5
@@ -21,24 +21,24 @@ import chess.model.pieces.Pawn;
|
|||||||
public class PgnExport {
|
public class PgnExport {
|
||||||
|
|
||||||
// public static void main(String[] args) {
|
// public static void main(String[] args) {
|
||||||
// final Game game = new Game();
|
// final Game game = new Game();
|
||||||
// final CommandExecutor commandExecutor = new CommandExecutor(game);
|
// final CommandExecutor commandExecutor = new CommandExecutor(game);
|
||||||
|
|
||||||
// DumbAI ai1 = new DumbAI(commandExecutor, Color.White);
|
// DumbAI ai1 = new DumbAI(commandExecutor, Color.White);
|
||||||
// commandExecutor.addListener(ai1);
|
// commandExecutor.addListener(ai1);
|
||||||
|
|
||||||
// DumbAI ai2 = new DumbAI(commandExecutor, Color.Black);
|
// DumbAI ai2 = new DumbAI(commandExecutor, Color.Black);
|
||||||
// commandExecutor.addListener(ai2);
|
// commandExecutor.addListener(ai2);
|
||||||
|
|
||||||
// commandExecutor.addListener(new GameAdaptator() {
|
// commandExecutor.addListener(new GameAdaptator() {
|
||||||
// @Override
|
// @Override
|
||||||
// public void onGameEnd() {
|
// public void onGameEnd() {
|
||||||
// System.out.println(exportGame(game));
|
// System.out.println(exportGame(game));
|
||||||
// commandExecutor.close();
|
// commandExecutor.close();
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// commandExecutor.executeCommand(new NewGameCommand());
|
// commandExecutor.executeCommand(new NewGameCommand());
|
||||||
// }
|
// }
|
||||||
|
|
||||||
private static final PiecePgnName piecePgnName = new PiecePgnName();
|
private static final PiecePgnName piecePgnName = new PiecePgnName();
|
||||||
@@ -63,8 +63,8 @@ public class PgnExport {
|
|||||||
|
|
||||||
case CheckMate:
|
case CheckMate:
|
||||||
if (game.getPlayerTurn() == Color.White)
|
if (game.getPlayerTurn() == Color.White)
|
||||||
return "1-0";
|
return "0-1";
|
||||||
return "0-1";
|
return "1-0";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
Reference in New Issue
Block a user