mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 03:59:15 +00:00
Reorder conditions according to their frequency
This should minimize useless tests. No functional change.
This commit is contained in:
parent
203fdc9ac1
commit
92dcbfa658
1 changed files with 3 additions and 3 deletions
|
@ -614,10 +614,10 @@ namespace {
|
||||||
|
|
||||||
// Update gain for the parent non-capture move given the static position
|
// Update gain for the parent non-capture move given the static position
|
||||||
// evaluation before and after the move.
|
// evaluation before and after the move.
|
||||||
if ( (move = (ss-1)->currentMove) != MOVE_NULL
|
if ( !pos.captured_piece_type()
|
||||||
&& (ss-1)->staticEval != VALUE_NONE
|
|
||||||
&& ss->staticEval != VALUE_NONE
|
&& ss->staticEval != VALUE_NONE
|
||||||
&& !pos.captured_piece_type()
|
&& (ss-1)->staticEval != VALUE_NONE
|
||||||
|
&& (move = (ss-1)->currentMove) != MOVE_NULL
|
||||||
&& type_of(move) == NORMAL)
|
&& type_of(move) == NORMAL)
|
||||||
{
|
{
|
||||||
Square to = to_sq(move);
|
Square to = to_sq(move);
|
||||||
|
|
Loading…
Add table
Reference in a new issue