Restore pliesFromNull counter

It is not equivalent because the check for the
50 moves rule get badly affected.

// Draw by the 50 moves rule?
if (st->rule50 > 100 || (st->rule50 == 100 && !is_check()))
    return true;

So we _really_ need two counters.

Thanks to Joona and Tord to be patience with a silly guy ;-)

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-10-09 10:08:42 +01:00
parent 06a5b602dc
commit f05d059b17
2 changed files with 9 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ enum Phase {
struct StateInfo {
Key key, pawnKey, materialKey;
int castleRights, rule50;
int castleRights, rule50, pliesFromNull;
Square epSquare;
Value mgValue, egValue;
Value npMaterial[2];