- Type Parameters:
P
-
public interface MoveMatcher<P extends Piece>
Emulates enum-like behavior on moves.
Every Move has `match` method that accepts a matcher and calls appropriate method.
Without the matcher we have to use `instanceof` and downcast to desired type.
-
Method Summary
-
Method Details
-
pieceMove
-
piecePick
-