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

Pawn Push

Home * Chess * Moves * Pawn Push

A Pawn Push is a quiet, irreversible move of a pawn one single step forward, or optionally but only from its initial rank, two steps forward. The condition for a pseudo-legal pawn push is that its target square ahead, the stop square, is empty, while the origin square is obviously occupied by the pawn of the side to move.

Contents
  1. Promotion
  2. Double Push
  3. See also
  4. External Links
  5. References

Promotion

A push from the seventh (second) rank is a promotion.

Double Push

The double pawn push from the initial rank requires both squares ahead empty. Making a double push is a precondition to set the en passant target square in the obtained position, as specified by initial Forsyth-Edwards Notation (FEN) unconditionally, where todays programs are instructed to set en passant target square if the en passant would be pseudo-legal (an opponent pawn left or right) or even better strictly legal 1, also considering updating Zobist keys during make move to avoid dissimilarity of otherwise repeated positions if the first occurrence happened after a double pawn push with no en passant capture actually possible 2.

See also

References

Up one Level


  1. Re: Arasan test suite update by Steven Edwards, CCC, September 19, 2008↩︎

  2. en passant and hash key calculation by Fred Hamilton, CCC, March 21, 2010↩︎

What links here

Contributors: GerdIsenberg.