Пример #1
0
 public static bool WithinBounds(this ChessPiece[,] board, Point location)
 {
     if (location.Y == -1)
     {
     }
     return(location.X >= 0 && location.X <= board.GetUpperBound(0) &&
            location.Y >= 0 && location.Y <= board.GetUpperBound(1));
 }