コード例 #1
0
        public Player(PlayerType playerType, string name, ActionReader actionReader)
        {
            PlayerType         = playerType;
            Name               = name;
            Random             = new Random();
            RolledDice         = new int[6];
            FixedDice          = Enumerable.Repeat(false, 6).ToArray();
            TotalNumberOfRolls = 0;
            Board              = new Board();
            CombinationList    = new CombinationList();
            ActionReader       = actionReader;
            CombinationToPlay  = CombinationType.Unknown;
            FirstAction        = false;
            Round              = Round.One;

            // PatternProbabilities - Load list of all possible pattern probabilities
            PatternProbabilities = GameUtility.CreatePatternProbabilitiesDictionary();
        }