This is a temporary, read-only recovery of the chessprogrammingwiki while a longer-term plan is worked out. Editing is not possible right now, but will be again soon.
Chess Programming Wiki All pages Other namespaces

Halfmove Clock

Home * Chess * Position * Halfmove Clock

The Halfmove Clock inside an chess position object takes care of enforcing the fifty-move rule. This counter is reset after captures or pawn moves, and incremented otherwise. Also moves which lose the castling rights, that is rook- and king moves from their initial squares, including castling itself, increment the Halfmove Clock. However, those moves are irreversible in the sense to reverse the same rights - since once a castling right is lost, it is lost forever, as considered in detecting repetitions.

See also

Forum Posts

Up one Level

What links here

Contributors: GerdIsenberg.