Exemplo n.º 1
0
        public SetScore GetRandomScoreSet()
        {
            if (m_isTeam)
            {
                return(null);
            }
            SetScore setScore = new SetScore();

            setScore.RandomScore(m_rand, m_maxGameCount);
            int[] gameArray = GetRandomWinnerArray(m_rand, setScore.SetScoreA, setScore.SetScoreB);
            foreach (int winGameA in gameArray)
            {
                GameScore gameScore = new GameScore();
                gameScore.RandomScore(m_rand, m_gamePoints, Probability(10), winGameA);
                setScore.Add(gameScore);
            }
            return(setScore);
        }