Skip to main content

reverses_at

Function reverses_at 

Source
fn reverses_at(prev: GridPoint, cur: GridPoint, next: GridPoint) -> bool
Expand description

Whether the wire reverses direction at cur: the prev → cur and cur → next runs share an axis and point opposite ways. A 90° turn or a straight run through cur is not a reversal.