示例#1
0
 @Test
 public void onlyListMovesAllowed() {
   List<Move> list = round.findMoves();
   for (int i = 0; i < round.getBoardSize(); i++) {
     Move move = new Move(0, i, 1, i);
     if (!list.contains(move)) {
       assertEquals(false, round.switchPieces(move));
       i = round.getBoardSize();
     }
   }
 }
示例#2
0
 @Before
 public void setUp() {
   round = new GameRound();
   round.newBoard();
   size = round.getBoardSize();
 }