private void Test(BoardState boardState, string name, int depth) { var result = VerificationPerft.Run(boardState, depth); var verificationStatus = result.VerificationSuccess ? "ok" : "fail"; _interactiveConsole.WriteLine($"{name} - Leafs: {result.LeafsCount}, Verificaton: {verificationStatus}"); }
public void VerificationPerft_MidGameBoard() { var boardState = FenToBoard.Parse("r2qr1k1/p2n1p2/1pb3pp/2ppN1P1/1R1PpP2/BQP1n1PB/P4N1P/1R4K1 w - - 0 21"); var result = VerificationPerft.Run(boardState, 5); Assert.True(result.VerificationSuccess); }
public void VerificationPerft_EndGameBoard() { var boardState = FenToBoard.Parse("7r/8/2k3P1/1p1p2Kp/1P6/2P5/7r/Q7 w - - 0 1"); var result = VerificationPerft.Run(boardState, 6); Assert.True(result.VerificationSuccess); }
public void VerificationPerft_DefaultBoard() { var boardState = new BoardState(); boardState.SetDefaultState(); var result = VerificationPerft.Run(boardState, 6); Assert.True(result.VerificationSuccess); }