Esempio n. 1
0
        public long PlayLongGame(int[] input, int moves)
        {
            var game = new CupCircle(input, true);

            for (int i = 0; i < moves; i++)
            {
                game.Move();
            }
            return(game.LongResult);
        }
Esempio n. 2
0
        public int GetDestinationAfter(int[] input, int moves)
        {
            var game = new CupCircle(input);

            for (int i = 0; i < moves; i++)
            {
                game.Move();
            }
            return(game.Destination);
        }
Esempio n. 3
0
        public string PlayGame(int[] input, int moves)
        {
            var game = new CupCircle(input);

            for (int i = 0; i < moves; i++)
            {
                game.Move();
            }
            return(game.Arrangement);
        }
Esempio n. 4
0
        public int GetCurrentCupAfter(int[] input, int moves)
        {
            var game = new CupCircle(input);

            for (int i = 0; i < moves; i++)
            {
                game.Move();
            }
            return(game.CurrentCup);
        }