Version 0.3 beta 3:

Computer can now play black and white
For some reason the computer cannot play against himself.
I think it must be because of force that is not understood.
This commit is contained in:
2006-01-24 16:16:04 +00:00
parent dbfd428710
commit 6cf9f27892
4 changed files with 61 additions and 31 deletions

View File

@ -162,6 +162,7 @@ public class Rules {
}
if (board.getPiece(toSquare).getPieceNumber()!=Piece.NONE) {
normalMove= false; //cannot move forward if there is a piece
bigJump=false;
}
if (captureLeft&&
((board.getPiece(toCaptureLeftSquare).getColor()==Piece.NO_COLOR)