Skip to main content

Module movement

Module movement 

Source

Functions§

find_king
Locates a specific Color’s 1D King index geometrically natively.
get_legal_moves
Computes the validated squares a piece can physically traverse, mapping obstructions explicitly.
get_pseudo_legal_attacks
Computes the raw squares a piece physically exerts influence over, ignoring checks or pins.
is_square_attacked
Sweeps the 1D Board space determining if an arbitrary square physically intersects ANY native hostile projection raycast.