Exemplo n.º 1
0
        public void MakeMove(int cellNumber)
        {
            _logger.Debug($"User player make move method called with parameter {cellNumber}");
            if (OnGetCell == null)
            {
                return;
            }
            CellGetterEventArgs eventArgs = new CellGetterEventArgs(cellNumber);

            OnGetCell(this, eventArgs);
        }
Exemplo n.º 2
0
        public void GetCell(GameLogic gameLogic)
        {
            _logger.Debug("AI player get cell method called");
            int cellNumber = Solver.GetCell(gameLogic);

            if (OnGetCell == null)
            {
                return;
            }
            CellGetterEventArgs eventArgs = new CellGetterEventArgs(cellNumber);

            OnGetCell(this, eventArgs);
        }