Пример #1
0
        private static void Main()
        {
            var channel = new Channel <Rocket>();
            var random  = new Random(223243);
            var level   = LevelsFactory.CreateLevel(random);

            channel.AppendIfLastItemIsUnchanged(level.InitialRocket, null);
            var bot    = new My_Bot(level.Clone(), channel, 45, 1000, random, 2);
            var thread = new Thread(() => bot.RunInfiniteLoop())
            {
                IsBackground = true
            };

            thread.Start();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var form = new GameForm(level.Clone(), channel);

            Application.Run(form);
        }