@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(); } } }
@Before public void setUp() { round = new GameRound(); round.newBoard(); size = round.getBoardSize(); }