示例#1
0
文件: Game.cs 项目: bobcorn/yahtzee
        public Game(List <IPlayer> players)
        {
            // Do stuff
            _players     = players;
            _dices       = DicesFactory.getIDicesInstance();
            _currentTurn = 0;
            _turns       = new ITurn[TURNS];
            _scoreboard  = new Scoreboard(players);

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