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

Method endGamePgn

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

Source from the content-addressed store, hash-verified

88 }
89
90 @Test
91 public void endGamePgn() {
92 Board board = Board.getBoard("2k5/8/5R2/8/8/8/3K4/4R3 w - - 5 6");
93 System.out.println(board);
94 Engine engine = new Engine();
95 final OutCome bestMove = engine.iterativeDeepening(board, 20);
96 System.out.println(bestMove.getMove());
97 Assert.assertEquals(Integer.MIN_VALUE, bestMove.getScore(), 0.000001);
98 System.out.println("NODES: " + Engine.nodesEvaluated + " TRANSPOSITIONS: " + engine.transpositionTable.size());
99 }
100
101 @Test
102 public void hardMateIn3() {

Callers

nothing calls this directly

Calls 4

getBoardMethod · 0.95
iterativeDeepeningMethod · 0.95
getMoveMethod · 0.95
getScoreMethod · 0.95

Tested by

no test coverage detected