Пример #1
0
 public TetrisCup(int width, int height, Point[] pattern)
 {
     this._size = new Size(width, height);
     this._pattern = pattern;
     _colors = new int[width, height];
     for (int i = 0; i < pattern.Length; i++)
     {
         var point = pattern[i];
         _colors[point.X, point.Y] = -1;
     }
 }
Пример #2
0
 public bool StrictlyLess(Size right)
 {
     return this.Width < right.Width || this.Height < right.Height;
 }