Skip to main content

is_valid

Function is_valid 

pub fn is_valid(moving: Placement, others: &[Placement]) -> bool
Expand description

Whether moving may rest at its place among others: it covers none of them and shares an edge with at least one, so the pointer can reach it. Alone, any place is valid.