mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Simplify next_move by always scoring evasions
For a default bench, this fixes the last valgrind error (jump on uninitialised value). Passed STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 187869 W: 33303 L: 33463 D: 121103 No functional change.
This commit is contained in:
parent
9893e7fd53
commit
3686e719a1
1 changed files with 1 additions and 2 deletions
|
@ -271,8 +271,7 @@ Move MovePicker::next_move() {
|
||||||
case EVASIONS_INIT:
|
case EVASIONS_INIT:
|
||||||
cur = moves;
|
cur = moves;
|
||||||
endMoves = generate<EVASIONS>(pos, cur);
|
endMoves = generate<EVASIONS>(pos, cur);
|
||||||
if (endMoves - cur - (ttMove != MOVE_NONE) > 1)
|
score<EVASIONS>();
|
||||||
score<EVASIONS>();
|
|
||||||
++stage;
|
++stage;
|
||||||
|
|
||||||
case ALL_EVASIONS:
|
case ALL_EVASIONS:
|
||||||
|
|
Loading…
Add table
Reference in a new issue