Function inanis::state::patterns::get_diagonals
source · pub fn get_diagonals(square: usize) -> u64
Expand description
Gets a diagonal pattern for the square specified by square_
.
. . . . . . . x
x . . . . . x .
. x . . . x . .
. . x . x . . .
. . . x . . . .
. . x . x . . .
. x . . . x . .
x . . . . . x .