Skip to content

Commit

Permalink
Fix dev and test build
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Dec 28, 2023
1 parent 62c6a17 commit 91d9717
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Lynx.Dev/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/Lynx.Test/PerftTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
2 changes: 1 addition & 1 deletion tests/Lynx.Test/PerftTestSuite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit 91d9717

Please sign in to comment.