()
| 20 | } |
| 21 | |
| 22 | @Test |
| 23 | public void otherBoard() { |
| 24 | Board board = Board.getStartBoard(); |
| 25 | board.makeMove(Move.get(board.getPiece(1, 4), Cell.get(3, 4), false)); |
| 26 | Engine engine = new Engine(); |
| 27 | board = board.copy(); |
| 28 | board.makeMove(Move.get(board.getPiece(6, 3), Cell.get(5, 3), false)); |
| 29 | board = board.copy(); |
| 30 | board.makeMove(Move.get(board.getPiece(3, 4), Cell.get(4, 4), false)); |
| 31 | board = board.copy(); |
| 32 | board.makeMove(Move.get(board.getPiece(6, 5), Cell.get(4, 5), false)); |
| 33 | // board = board.copy(); |
| 34 | // board.makeMove(board.getPiece(4, 4).getMoveList(board).stream().filter(c -> c.captureMove).filter(c -> c.captureCell.equals(Cell.get(4, 5))).findAny().get()); |
| 35 | final int positions = engine.countAllMoves(board, 2); |
| 36 | System.out.println(board); |
| 37 | System.out.println("NUMBER OF POSITIONS: " + positions); |
| 38 | System.out.println(board.fenRepresentation()); |
| 39 | Assert.assertEquals(729, positions); |
| 40 | } |
| 41 | |
| 42 | @Test |
| 43 | public void countMovesAfterMove() { |
nothing calls this directly
no test coverage detected