MagicBitboards
Magic Bitboards implementation for sliding pieces (Bishops and Rooks).
Magic Bitboards provide O(1) lookup for sliding piece attacks by hashing the current board occupancy into a precomputed attack table.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MagicBitboards.type
Members list
Value members
Concrete methods
Returns bishop attacks given a square and board occupancy.
Returns bishop attacks given a square and board occupancy.
Attributes
Generates bishop attacks using a slow classical approach.
Generates bishop attacks using a slow classical approach.
Attributes
Generates the occupancy mask for a bishop on a given square. Excludes the edges of the board.
Generates the occupancy mask for a bishop on a given square. Excludes the edges of the board.
Attributes
Returns queen attacks given a square and board occupancy.
Returns queen attacks given a square and board occupancy.
Attributes
Returns rook attacks given a square and board occupancy.
Returns rook attacks given a square and board occupancy.
Attributes
Generates rook attacks using a slow classical approach.
Generates rook attacks using a slow classical approach.