Zobrist
Deterministic Zobrist hashing for Dice Chess game states.
Includes piece placement, active color, castling rights, en passant target squares, and canonical remaining dice pool combinations.
Attributes
- Source
- Zobrist.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Zobrist.type
Members list
Value members
Concrete methods
Computes the complete Zobrist key for state from scratch.
Returns the canonical Zobrist key component for a dice pool.
Returns the canonical Zobrist key component for a dice pool.
Multisets are canonicalized (sorted), ensuring List(1, 3) and List(3, 1) produce the exact same key.
Attributes
- Source
- Zobrist.scala
Attributes
- Source
- Zobrist.scala
Maps (color, pieceType) to an index in [0, 11]
Returns the Zobrist key component for a piece on a square.
Concrete fields
XOR key applied when active color is Black
Castling rights table: 16 possible 4-bit combinations
Dice pool multiset table: 343 combinations for sorted (slot1, slot2, slot3)
Dice pool multiset table: 343 combinations for sorted (slot1, slot2, slot3)
Attributes
- Source
- Zobrist.scala
En passant target squares table: 64 squares
Piece placement table: 12 piece types (6 White, 6 Black) x 64 squares
Piece placement table: 12 piece types (6 White, 6 Black) x 64 squares
Attributes
- Source
- Zobrist.scala