Skip to content

Commit c74c71b

Browse files
committed
fix #1: invalid knight moves bitboard for A3 square
1 parent 0796e4c commit c74c71b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ var (
380380
4122, // B2
381381
32901, // C2
382382
16450, // D2
383-
16946, // A3
383+
16898, // A3
384384
41217, // B3
385385
22536, // C3
386386
9220, // D3

move_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ type perfTest struct {
2121
// https://www.chessprogramming.org/Perft_Results
2222
var perfResults = []perfTest{
2323
{pos: unsafeOFEN("ppkn/4/4/NKPP w NCFncf - 0 1"), nodesPerDepth: []int{
24-
10, 84, 642, 4373, 29389, 185151,
24+
10, 84, 642, 4375, 29309, 183931,
2525
}},
2626
{pos: unsafeOFEN("ppkn/4/2P1/NK1P w NCFncf - 0 1"), nodesPerDepth: []int{
27-
10, 75, 538, 3432,
27+
10, 75, 538, 3433,
2828
}},
2929
}
3030

0 commit comments

Comments
 (0)