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