Skip to content

Commit

Permalink
A better impl
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaCat-OuO committed Nov 13, 2024
1 parent 5d911f2 commit a65aceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/position.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ inline Key Position::key() const { return adjust_key60<false>(st->key); }
template<bool AfterMove>
inline Key Position::adjust_key60(Key k) const {
return (st->rule60 < 14 - AfterMove ? k : k ^ make_key((st->rule60 - (14 - AfterMove)) / 8))
^ (filter[st->key] ? make_key(14) : 0);
^ (filter[st->key] * make_key(14));
}

inline Key Position::pawn_key() const { return st->pawnKey; }
Expand Down

0 comments on commit a65aceb

Please sign in to comment.