- All Known Implementing Classes:
StandardValidator
public interface Validator
Validator is used to filter potential piece moves and leave only those that don't break supplied rules
-
Method Summary
Modifier and TypeMethodDescriptiongetLegalMoves
(ChessPiece piece, ChessPiece[][] board) Ger legal moves of the piece using default rulesgetLegalMoves
(ChessPiece piece, ChessPiece[][] board, Collection<Rule> rules) Get legal moves of the piece using supplied rules
-
Method Details
-
getLegalMoves
Get legal moves of the piece using supplied rules -
getLegalMoves
Ger legal moves of the piece using default rules -
getDefaultRules
Collection<Rule> getDefaultRules()
-