예제 #1
0
        public List <Reel> GetReelSetForSlotMachine(int slots, List <int[]> s, int numberOfUniqueSymbolsOnReel)
        {
            List <Reel> result = new List <Reel>();

            for (int i = 0; i < slots; i++)
            {
                Reel R = new Reel(numberOfUniqueSymbolsOnReel, s[i]);
                result.Add(R);
            }

            return(result);
        }
예제 #2
0
        public string SpinReel(Reel reel)
        {
            int randomNumber = GetRandomNumber(0, (reel.TotalCountOfAllSymbolsOnReel()));

            return(reel.GetSymbolOnReelAtPosition(randomNumber));
        }