-/// The UndoInfo struct stores information we need to restore a Position
-/// object to its previous state when we retract a move. Whenever a move
-/// is made on the board (by calling Position::do_move), an UndoInfo object
-/// must be passed as a parameter. When the move is unmade (by calling
-/// Position::undo_move), the same UndoInfo object must be passed again.
-
-struct UndoInfo {
- int castleRights;
- Square epSquare;
- Bitboard checkersBB, pinners[2], pinned[2], dcCandidates[2];
+/// The StateInfo struct stores information we need to restore a Position
+/// object to its previous state when we retract a move. Whenever a move
+/// is made on the board (by calling Position::do_move), an StateInfo object
+/// must be passed as a parameter.
+
+struct StateInfo {
+ Bitboard pinners[2], pinned[2], dcCandidates[2], checkersBB;