mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Better self-document LMR reduction() formula
Suggested by Onno No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
786564068b
commit
a860576493
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ namespace {
|
|||
int8_t ReductionMatrix[2][64][64]; // [pv][depth][moveNumber]
|
||||
|
||||
template <NodeType PV>
|
||||
inline Depth reduction(Depth d, int mn) { return (Depth) ReductionMatrix[PV][Min(d / 2, 63)][Min(mn, 63)]; }
|
||||
inline Depth reduction(Depth d, int mn) { return (Depth) ReductionMatrix[PV][Min(d / ONE_PLY, 63)][Min(mn, 63)]; }
|
||||
|
||||
// Easy move margin. An easy move candidate must be at least this much
|
||||
// better than the second best move.
|
||||
|
|
Loading…
Add table
Reference in a new issue