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