Пример #1
0
 public bool IsValidData(int y, int x)
 {
     if (y < 0 || y > 7 || x < 0 || x > 7)
     {
         return(false);
     }
     if (this.y == y && this.x == x)
     {
         return(false);
     }
     if (board.GetFigure(y, x)?.GetColor() == this.color)
     {
         return(false);
     }
     return(true);
 }