Example #1
0
 private void checkSpecialRules(
     ImmutablePoint origin,
     Player player,
     ReadableBoard board,
     Set<? extends Move> expectedMoves) {
   assertThat(pawn.specialRuleAllowedMoves(origin, player, board), equalTo(expectedMoves));
 }
Example #2
0
 @Test
 public void testMaximalMoves() {
   assertThat(pawn.getMaximalMoves(), is(empty()));
 }