Rules for pawn. Every rule is implemented except 'prise en passant' and obligation to capture.
This commit is contained in:
@ -57,13 +57,6 @@ public class SuicideChess {
|
||||
break;
|
||||
}
|
||||
|
||||
if (whatMove.startsWith("move")) {
|
||||
Move move = new Move(new Square(0), new Square(1), new Piece(2), new Piece(3), new Piece(Piece.NONE));
|
||||
move.display();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (whatMove.startsWith("hint")) {
|
||||
Rules rules = new Rules();
|
||||
ArrayList<Move> allLegalMoves =
|
||||
|
Reference in New Issue
Block a user