예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }