Version 1.4.2

Now possible to undo, save games, restore positions, and view statistics when the computer plays.
This commit is contained in:
2006-01-28 16:35:21 +00:00
parent a3916eb445
commit ed438e593a
5 changed files with 194 additions and 31 deletions

View File

@ -134,7 +134,7 @@ public class SuicideChess {
try {
String whatMove= moveInput.readLine();
boolean playedALegalMove = false;
int xBoardCommand = XBoardProtocol.getCommand(whatMove);
switch (xBoardCommand) {
@ -185,6 +185,11 @@ public class SuicideChess {
case XBoardProtocol.NOPOST:
post=false;
break;
case XBoardProtocol.SETBOARD:
bitboard=new Board(whatMove.substring(9));
if(ASCII_GAME)
bitboard.display();
break;
case XBoardProtocol.UNKNOWN:
if (acceptedUsermove) {
System.out.println("Error (unknown command): "+whatMove);
@ -315,6 +320,5 @@ public class SuicideChess {
break;
}
}
}
}
}