- All Known Implementing Classes:
CastlingRules
,FriendlyFireIsDisallowed
,KingAndRookCantMoveBeforeCastling
,KingCantBeCheckedDuringCastling
,NothingOnTheRoadOfTheKingIsUnderAttack
,PawnGoingForwardCantTakePieces
,PawnGoingSidewaysNeedsToTakeSomething
,RoadCannotBeObstructed
,ThereCanBeNothingBetweenKingAndRookDuringCastling
,YourKingCannotBeCheckedAfterYourMove
public interface Rule
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeAppliedTo
(ChessMove move) boolean
validate
(ChessMove move, ChessPiece[][] board)
-
Method Details
-
canBeAppliedTo
-
validate
-