예제 #1
0
        static void Main(string[] args)
        {
            // creating custom bomberman's Ai client
            var bomber = new MyCustomBombermanAI("ApiDotNet");

            // starting thread with playing bomberman
            (new Thread(bomber.Play)).Start();

            // waiting for "anykey"
            Console.ReadKey();

            // on "anykey" - asking bomberman's Ai client to stop.
            bomber.InitiateExit();
        }
예제 #2
0
파일: Program.cs 프로젝트: alhenk/snake
        static void Main(string[] args)
        {
            // creating custom bomberman's Ai client
            var bomber = new MyCustomBombermanAI("ApiDotNet");

            // starting thread with playing bomberman
            (new Thread(bomber.Play)).Start();

            // waiting for "anykey"
            Console.ReadKey();

            // on "anykey" - asking bomberman's Ai client to stop.
            bomber.InitiateExit();
        }