Ejemplo n.º 1
0
        private void FinishGame(List <List <Cell> > cells)
        {
            var firstPlayerCellsCount  = Game.CalculatePlayersScore(_firstPlayerColor, cells);
            var secondPlayerCellsCount = Game.CalculatePlayersScore(_secondPlayerColor, cells);

            GameFinished?.Invoke(firstPlayerCellsCount, secondPlayerCellsCount);
        }
Ejemplo n.º 2
0
 private void CalculatePlayersScore(List <List <Cell> > cells)
 {
     ScoresCalculated?.Invoke(Game.CalculatePlayersScore(_firstPlayerColor, cells), Game.CalculatePlayersScore(_secondPlayerColor, cells));
 }