pub fn aligned(a: Square, b: Square, c: Square) -> bool
Expand description
Tests if all three squares are aligned on a rank, file or diagonal.
§Example
use shakmaty::{attacks, Square};
assert!(attacks::aligned(Square::A1, Square::B2, Square::C3));