
FEN - Forsyth–Edwards Notation (FEN) is a standard notation for describing a particular board position of a chess game. Threefold repetition - states that a player may claim a draw if the same position occurs three times. 50 move rule - states that a player can claim a draw if no capture has been made and no pawn has been moved in the last fifty moves. It’s often abbreviated as BB in the code. This allows parallel bitwise operations to set or query the game state, or determine moves or plays in the game. Bitboard ( Chess Programming, Wikipedia) - bit array data structure, where each bit corresponds to a game board space. Some terms necessary to understand the code: It makes use of various clever, while standard, data structures and techniques, such as BitBoards. Stockfish has the Position class representing a chess position. In this article we only focus on the representation, leaving aside other aspects of the engine such as evaluation, search, etc. search) as well as maintaining the state of the game during play. Board representation is fundamental to all aspects of a chess program including move generation, the evaluation function, and making and unmaking moves (i.e. ProblemĪ chess engine needs to represent the chess board. The reader is expected to know the rules of chess. Stockfish is consistently ranked first or near the top of most chess-engine rating lists and is the strongest CPU chess engine in the world. Stockfish is one of the most famous and most powerful chess engines. #Testing stockfish chess code
Help Code Catalog grow: suggest your favorite code or weight in on open article proposals.
Stockfish - Chess Board Representation Status PUBLISHED Project Stockfish Project home page Language C++ Tags #chess #bitboard