Skip to main content

hex_offsets

Function hex_offsets 

Source
pub fn hex_offsets(radius: i32) -> Vec<Coord> 
Expand description

Returns all (dq, dr) offsets within hex-distance ≤ radius of the origin. Used for legal move generation and cache updates.