Пример #1
0
 public void SelectCellAt(Point2D point)
 {
     foreach (Cell c in _valid)
     {
         if (c.IsAt(point) == true)
         {
             if (_p.Turn == 1)
             {
                 c.CS = CellState.Black;
                 _p.Increment();
                 _count = _count - 1;
                 UpdateBoardStatus(c.X, c.Y, c.CS, CellState.White);
             }
             else
             {
                 c.CS = CellState.White;
                 _p.Increment();
                 _count = _count - 1;
                 UpdateBoardStatus(c.X, c.Y, c.CS, CellState.Black);
             }
         }
     }
 }