Difference between revisions of "Chess Position"

From Chessprogramming wiki
Jump to: navigation, search
Line 87: Line 87:
 
* [http://www.talkchess.com/forum3/viewtopic.php?f=7&t=73614 Canonical Position Representation] by Dmitry Shechtman, [[CCC]],  April 10, 2020
 
* [http://www.talkchess.com/forum3/viewtopic.php?f=7&t=73614 Canonical Position Representation] by Dmitry Shechtman, [[CCC]],  April 10, 2020
 
* [http://www.talkchess.com/forum3/viewtopic.php?f=7&t=77685 On the number of chess positions] by [[John Tromp]], [[CCC]], July 09, 2021
 
* [http://www.talkchess.com/forum3/viewtopic.php?f=7&t=77685 On the number of chess positions] by [[John Tromp]], [[CCC]], July 09, 2021
 +
: [https://www.talkchess.com/forum3/viewtopic.php?f=7&t=77685&start=34 Re: On the number of chess positions] by [[John Tromp]], [[CCC]], April 02, 2022
  
 
=External Links=
 
=External Links=
* [http://stackoverflow.com/questions/1831386/programmer-puzzle-encoding-a-chess-board-state-throughout-a-game Programmer Puzzle: Encoding a chess board state throughout a game] from [https://en.wikipedia.org/wiki/Stack_Overflow Stack Overflow]
+
* [https://github.com/tromp/ChessPositionRanking GitHub - tromp/ChessPositionRanking: Software suite for ranking chess positions and accurately estimating the number of legal chess positions]
* [http://www.chesspositiontrainer.com/ Chess Position Trainer] by Stefan Renzewitz and Gregory Prentice
+
* [https://stackoverflow.com/questions/1831386/programmer-puzzle-encoding-a-chess-board-state-throughout-a-game Puzzle: Encoding a chess board state throughout a game] from [https://en.wikipedia.org/wiki/Stack_Overflow Stack Overflow]
* [http://kirill-kryukov.com/chess/nulp/ NULP in chess endgames] by [[Kirill Kryukov]]
+
* [https://www.chesspositiontrainer.com/index.php/en/ Chess Position Trainer] by Stefan Renzewitz and Gregory Prentice
 +
* [https://kirill-kryukov.com/chess/nulp/ NULP in chess endgames] by [[Kirill Kryukov]]
  
 
=References=  
 
=References=  

Revision as of 11:35, 4 April 2022

Home * Chess * Position

The Chess Position describes how pieces are placed on the chessboard, as printed as chess diagram, image or photograph from a game of chess. In 1996 Shirish Chinchalkar determined 1046 as upper bound for the number of reachable chess positions [3]. The maximum number of moves per chess position seems 218 [4].

Of course, the information of any arbitrary chess position which occurs inside the game of chess, might be determined from a certain initial starting position and a sequence of moves (half-moves), which leads to this position. Anyway, an efficient data structure for a chess position, which is incrementally updated during game play and search is essential for a chess playing program.

Specifying a Chess Position

Except the determination of three fold repetitions, which requires the whole move record, at least from the last irreversible move (half-move) played, the chess position should keep track of various informations related to the position also for efficiency reasons. Another issue is to make chess positions persistent with a maximum of information required, but without the whole game history, as specified by the Forsyth-Edwards Notation or Extended Position Description.

Beside piece placement, as considered by the board representation, the side to move is essential, which might take only one bit inside an appropriate data structure for a chess position. Additionally, the Castling ability for both sides, as reflected by the castling rights and a possible en passant target square (or file) is needed to further completely specify the position, as well as the halfmove clock to cover the fifty-move rule.

Summary

A chess positions consists of

Positions inside the Search

In the context of Search, a position is the node inside a search tree. To completely determine the position with respect to repetitions, one additionally needs a move list or any other appropriate data structure, to keep up to 100 reversible half-moves, likely associated with Zobrist keys of the intermediate positions.

Positions

Notations

Flipping and Mirroring

See Also

Piece Recognition

Publications

Forum Posts

1980 ...

1990 ...

Re: number of moves in position by Leonid, CCC, September 21, 1999

2000 ...

2010 ...

2015 ...

2020 ...

Re: On the number of chess positions by John Tromp, CCC, April 02, 2022

External Links

References

Up one Level