GameState
dicechess.engine.domain.GameState
case class GameState(whitePieces: Bitboard, blackPieces: Bitboard, pawns: Bitboard, knights: Bitboard, bishops: Bitboard, rooks: Bitboard, queens: Bitboard, kings: Bitboard, mailbox: Map[Square, Piece], activeColor: Color, castlingRights: String, enPassant: Option[Square], halfMoveClock: Int, fullMoveNumber: Int)
The complete snapshot of a Dice Chess game state.
Uses a hybrid architecture combining fast Bitboards for move generation and a Map mailbox for constant-time piece lookups.
Value parameters
- activeColor
-
The color of the player whose turn it is.
- bishops
-
Bitboard for all Bishops (both colors).
- blackPieces
-
Bitboard for all Black pieces.
- castlingRights
-
FEN-standard castling string (e.g., "KQkq").
- enPassant
-
Potential en passant target square.
- fullMoveNumber
-
The number of the current full move.
- halfMoveClock
-
Clock for the 50-move rule.
- kings
-
Bitboard for all Kings (both colors).
- knights
-
Bitboard for all Knights (both colors).
- mailbox
-
Map of occupied squares to their respective pieces.
- pawns
-
Bitboard for all Pawns (both colors).
- queens
-
Bitboard for all Queens (both colors).
- rooks
-
Bitboard for all Rooks (both colors).
- whitePieces
-
Bitboard for all White pieces.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article