Bitboard
dicechess.engine.domain.Models$package.Bitboard
object Bitboard
A 64-bit integer representing a set of squares on the chess board.
Uses Little-Endian Rank-File (LERF) mapping, where bit 0 is a1 and bit 63 is h8.
Attributes
- Source
- Models.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Bitboard.type
Members list
Value members
Concrete methods
Creates a bitboard from a raw 64-bit integer.
Creates a bitboard with a single square occupied.
Concrete fields
An empty bitboard (no squares occupied).
A full bitboard (all squares occupied).
Givens
Givens
Attributes
- Source
- Models.scala
Extensions
Extensions
extension (bb: Bitboard)
Bitwise AND (Intersection)
Bitwise Left Shift
Logical Right Shift (Zero Fill)
Bitwise XOR (Symmetric Difference)
Adds a square to the bitboard.
Checks if a square is occupied on this bitboard.
Returns the number of occupied squares (using JVM POPCNT intrinsic).
Returns true if the bitboard has no occupied squares.
Removes a square from the bitboard.
Bitwise NOT (Complement)
Exposes the underlying Long value.
Bitwise OR (Union)
In this article