private void AddBall(int x, int y, int color) { _model.grid[x, y] = color; int position = GridHelper.GetPosition(x, y, _model.gridSettings.size); _model.freeCells.Remove(position); _view.AddBall(position, color); }
private void AddBall(int x, int y, int color) { _model.grid[x, y] = color; int position = GridHelper.GetPosition(x, y, _model.gridSettings.size); _model.freeCells.Remove(position); _view.AddBall(position, color); }