Esempio n. 1
0
        public Game(List <IPlayer> players)
        {
            // Do stuff
            _players     = players;
            _dices       = DicesFactory.getIDicesInstance();
            _currentTurn = 0;
            _turns       = new ITurn[TURNS];
            _scoreboard  = new Scoreboard(players);

            NewTurn();
            OnStart();
        }
Esempio n. 2
0
 public void UseCombination(Scoreboard sb, Combination c, IDices dices)
 {
     sb.SetCombinationForPlayer(_player, c, dices);
     TurnEnded?.Invoke(this, EventArgs.Empty);
 }