Skip to content

Commit

Permalink
fix #1: invalid knight moves bitboard for A3 square
Browse files Browse the repository at this point in the history
  • Loading branch information
dechristopher committed Mar 7, 2021
1 parent 0796e4c commit c74c71b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ var (
4122, // B2
32901, // C2
16450, // D2
16946, // A3
16898, // A3
41217, // B3
22536, // C3
9220, // D3
Expand Down
4 changes: 2 additions & 2 deletions move_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ type perfTest struct {
// https://www.chessprogramming.org/Perft_Results
var perfResults = []perfTest{
{pos: unsafeOFEN("ppkn/4/4/NKPP w NCFncf - 0 1"), nodesPerDepth: []int{
10, 84, 642, 4373, 29389, 185151,
10, 84, 642, 4375, 29309, 183931,
}},
{pos: unsafeOFEN("ppkn/4/2P1/NK1P w NCFncf - 0 1"), nodesPerDepth: []int{
10, 75, 538, 3432,
10, 75, 538, 3433,
}},
}

Expand Down

0 comments on commit c74c71b

Please sign in to comment.