MCPcopy Create free account
hub / github.com/coding-parrot/chess-engine / winQueen

Method winQueen

src/test/java/MinMaxTest.java:75–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 }
74
75 @Test
76 public void winQueen() {
77 Board board = Board.getBoard("3r1k2/5p2/p4N1p/1p4p1/2pq4/6P1/1P3Q1P/4R1K1 w - - 2 33");
78 System.out.println(board);
79 Engine engine = new Engine();
80 final OutCome bestMove = engine.iterativeDeepening(board, 20);
81 System.out.println(bestMove.getMove());
82 System.out.println(bestMove.getScore());
83 board.makeMove(bestMove.getMove());
84 System.out.println(board);
85 Assert.assertEquals(Cell.get(7, 4), bestMove.getMove().target);
86 Assert.assertTrue(bestMove.getMove().piece.sameType(PieceType.ROOK));
87 System.out.println("NODES: " + Engine.nodesEvaluated + " TRANSPOSITIONS: " + engine.transpositionTable.size());
88 }
89
90 @Test
91 public void endGamePgn() {

Callers

nothing calls this directly

Calls 7

getBoardMethod · 0.95
iterativeDeepeningMethod · 0.95
getMoveMethod · 0.95
getScoreMethod · 0.95
makeMoveMethod · 0.95
getMethod · 0.95
sameTypeMethod · 0.80

Tested by

no test coverage detected