1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 17:19:36 +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:
Marco Costalba 2011-04-15 17:41:45 +02:00
parent 786564068b
commit a860576493

View file

@ -216,7 +216,7 @@ namespace {
int8_t ReductionMatrix[2][64][64]; // [pv][depth][moveNumber] int8_t ReductionMatrix[2][64][64]; // [pv][depth][moveNumber]
template <NodeType PV> 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 // Easy move margin. An easy move candidate must be at least this much
// better than the second best move. // better than the second best move.