mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Fix typo in tbprobe.cpp
closes https://github.com/official-stockfish/Stockfish/pull/4959 No functional change
This commit is contained in:
parent
cafbe8e8e8
commit
4930892985
1 changed files with 1 additions and 1 deletions
|
@ -863,7 +863,7 @@ do_probe_table(const Position& pos, T* entry, WDLScore wdl, ProbeState* result)
|
|||
int adjust2 = (squares[2] > squares[0]) + (squares[2] > squares[1]);
|
||||
|
||||
// First piece is below a1-h8 diagonal. MapA1D1D4[] maps the b1-d1-d3
|
||||
// triangle to 0...5. There are 63 squares for second piece and and 62
|
||||
// triangle to 0...5. There are 63 squares for second piece and 62
|
||||
// (mapped to 0...61) for the third.
|
||||
if (off_A1H8(squares[0]))
|
||||
idx = (MapA1D1D4[squares[0]] * 63 + (squares[1] - adjust1)) * 62 + squares[2] - adjust2;
|
||||
|
|
Loading…
Add table
Reference in a new issue