Esempio n. 1
0
 private bool DisplacementIsZero(ref CellIndices displacement)
 {
     return(displacement.row == 0 && displacement.column == 0);
 }
Esempio n. 2
0
 private bool DisplacementIsDiagonal(ref CellIndices displacement)
 {
     return(Math.Abs(displacement.column) == Math.Abs(displacement.row));
 }
Esempio n. 3
0
 private bool IsMoveInsideBoundariesValid(CellIndices move)
 {
     return(move != board.GetEmptyCellPos());
 }