Changes

Jump to: navigation, search

Castling Rights

552 bytes added, 10:14, 22 September 2018
no edit summary
'''[[Main Page|Home]] * [[Chess]] * [[Chess Position|Position]] * Castling Rights'''
The '''Castling Rights''' specify whether both sides are principally able to [[Castling|castle]] king- or queen side, now or later during the game - whether the involved pieces have already moved or in case of the rooks, were captured. Castling rights do not specify, whether castling is actually possible, but are a pre-condition for both wing castlings. Two [[Bit|bits]] per side are appropriate to store the castling rights, often one uses one [[Nibble|nibble]] to store the rights for both sides inside a [[Chess Position|position]] object, a kind a [[Array|array]] of four booleans.
Two [[Bit|bits]] per side are appropriate to store the castling rights, often one uses one [[Nibble|nibble]] to store the rights for both sides inside a [[Chess Position|position]] object, a kind a [[Array|array]] of four booleans. =Irreversibility=In [[Make Move|make move]] one has to consider that king-moves including castling itself reset both castling bits per side.  Rook-moves from their original [[Squares|square]], or [[Captures|captures]] of rooks on their original squares reset the appropriate castling bits per wing and side. Changed castling rights should be considered in the [[Zobrist Hashing|zobrist key]] of the position, to reflect the irreversibility of the otherwise [[Reversible Moves|reversible move]], concerning [[Repetitions|repetitions]]. On the other hand, changed castling rights don't necessarily reset the [[Halfmove Clock|halfmove clock]] regarding the [[Fifty-move Rule|fifty-move rule]]<ref>[http://www.horst-wandersleben.de/Wette.htm Computerschach - Eine Wette, die ich gerne verloren habe] by [[Horst Wandersleben]] (German)</ref>.
=See also=
* [[Castling]]
* [[Chess960]]
* [[Irreversible Moves]]
* [[King Safety]]
* [[Unmake Move]]
=External Links=
* [http://timkr.home.xs4all.nl/chess2/diary_3.htm Open chess diary 41-60 52. 20 February: Castling rights in photographs and on servers] by [https://en.wikipedia.org/wiki/Tim_Krabb%C3%A9 Tim Krabbé]
* [http://www.horst-wandersleben.de/Wette.htm Computerschach - Eine Wette, die ich gerne verloren habe] by [[Horst Wandersleben]] (German) <ref>[[Dieter Bürssner]] found a game finished in a [[Fifty-move Rule|fifty-move rule]] draw, where [[Castling|castling]] occurred during the last fifty moves</ref>
* [http://mediocrechess.blogspot.de/2006/12/bug-another-little-bug-in-castling.html Mediocre Chess: [Bug] Another little bug in castling rights] by [[Jonatan Pettersson]], December 30, 2006
=References=
<references />
'''[[Chess Position|Up one Level]]'''

Navigation menu