Skip to main content

moves_from_location

Function moves_from_location 

Source
pub fn moves_from_location(
    matrix: &[Vec<i64>],
    i: usize,
    j: usize,
) -> [Option<i64>; 3]
Expand description

The costs of the three moves onto a cell – up, left and diagonally – each nothing where that cell is off the matrix: music21’s getPossibleMovesFromLocation.