예제 #1
0
        public async void Explore3()
        {
            var cache = new RedisCacheService();
            //var cache = new LocalCacheService();
            //var cache = new SimCacheService();
            var navigator = new Navigator(cache);
            for (int i = 15; i < 100; i++)
            {
                var game = navigator.PrepareGame(Player.P1, 103+i);

                Console.WriteLine("----------------------------------------------------------------------");
                Console.WriteLine(i);
                Console.WriteLine("----------------------------------------------------------------------");
                var result = await navigator.Explore(game, Progress);
                //Console.WriteLine(result);
                //Console.WriteLine();
                //Console.WriteLine(result.Session);
            }
        }
예제 #2
0
        public async void Explore()
        {
            var cache = new RedisCacheService();
            //var cache = new SimCacheService();
            //var cache = new LocalCacheService();
            var navigator = new Navigator(cache);
            var game = navigator.PrepareGame(Player.P1, 103);

            var result = await navigator.Explore(game, Progress);
            Console.WriteLine(result);
            Console.WriteLine();
            Console.WriteLine(result.Session);

            var game2 = game.MakeTurn(Card.TQ);

            var result2 = await navigator.Explore(game2, Progress);
            Console.WriteLine(result2);
            Console.WriteLine();
            Console.WriteLine(result2.Session);

        }