Skip to content

Commit

Permalink
Consider counting ply in TT
Browse files Browse the repository at this point in the history
  • Loading branch information
ianfab committed Feb 11, 2021
1 parent 100b4d1 commit c67c567
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/position.h
Expand Up @@ -1073,6 +1073,8 @@ inline int Position::pawns_on_same_color_squares(Color c, Square s) const {
}

inline Key Position::key() const {
if (st->countingLimit)
return st->countingPly < 14 ? st->key : st->key ^ make_key((st->countingPly - 14) / 8);
return st->rule50 < 14 ? st->key
: st->key ^ make_key((st->rule50 - 14) / 8);
}
Expand Down

0 comments on commit c67c567

Please sign in to comment.