diff --git a/src/Lynx.Dev/Program.cs b/src/Lynx.Dev/Program.cs index 28a0f54d2..adbe14132 100644 --- a/src/Lynx.Dev/Program.cs +++ b/src/Lynx.Dev/Program.cs @@ -1075,7 +1075,7 @@ static void TesSize(int size) static void UnmakeMove() { var pos = new Position("r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq"); - var a = Perft.ResultsImpl(pos, 1, default, new Move[Constants.MaxNumberOfPossibleMovesInAPosition]); + var a = Perft.ResultsImpl(pos, 1, default); TestMoveGen(Constants.InitialPositionFEN); TestMoveGen(Constants.TTPositionFEN); diff --git a/tests/Lynx.Test/PerftTest.cs b/tests/Lynx.Test/PerftTest.cs index 0c66d2738..a1d359252 100644 --- a/tests/Lynx.Test/PerftTest.cs +++ b/tests/Lynx.Test/PerftTest.cs @@ -161,6 +161,6 @@ public void JohnMerlinoPositions(string fen, int depth, long expectedNumberOfNod private static void Validate(string fen, int depth, long expectedNumberOfNodes) { - Assert.AreEqual(expectedNumberOfNodes, Perft.ResultsImpl(new Position(fen), depth, default, new Move[Constants.MaxNumberOfPossibleMovesInAPosition])); + Assert.AreEqual(expectedNumberOfNodes, Perft.ResultsImpl(new Position(fen), depth, default)); } } diff --git a/tests/Lynx.Test/PerftTestSuite.cs b/tests/Lynx.Test/PerftTestSuite.cs index 935b305e9..ddefbbb09 100644 --- a/tests/Lynx.Test/PerftTestSuite.cs +++ b/tests/Lynx.Test/PerftTestSuite.cs @@ -771,6 +771,6 @@ public void Suite(string fen, int depth, long expectedNumberOfNodes) private static void Validate(string fen, int depth, long expectedNumberOfNodes) { - Assert.AreEqual(expectedNumberOfNodes, Perft.ResultsImpl(new Position(fen), depth, default, new Move[Constants.MaxNumberOfPossibleMovesInAPosition])); + Assert.AreEqual(expectedNumberOfNodes, Perft.ResultsImpl(new Position(fen), depth, default)); } }