Example #1
0
        public static void GodVsHuman()
        {
            GodPlayer   godPlayer   = new GodPlayer();
            HumanPlayer humanPlayer = new HumanPlayer();
            Game        game        = new Game(new Player[] { humanPlayer, godPlayer });

            game.Start();
        }
Example #2
0
        /// <summary>
        /// 测试上帝玩家
        /// </summary>
        public static void TestGodPlayer()
        {
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();
            GodPlayer godPlayer = new GodPlayer()
            {
                IsEnabledGameLog = false
            };

            PlayerTest(godPlayer);
            Console.WriteLine(stopwatch.Elapsed);
            stopwatch.Stop();
        }