public async void Explore2() { var cache = new LocalCacheService(); var navigator = new Navigator(cache); var result = await navigator.Explore(Player.P1, Progress, 103, 1, Card.TQ, Card.TA, Card.T8); Console.WriteLine(result); Console.WriteLine(); Console.WriteLine(result.Session); }
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); }
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); } }