Example #1
0
        // ссылку можно взять в строке браузера после регистрации на сервере и логина
        // http://server-ip:8080/codenjoy-contest/board/player/[email protected]?code=12345678901234567890

        static void Main(string[] args)
        {
            Console.SetWindowSize(Console.LargestWindowWidth - 3, Console.LargestWindowHeight - 3);

            // создаем экземпляр игрового бота
            var tetrisPlayer = new YourSolver(ServerUrl);

            // запускаем бота в отдельном потоке
            Thread thread = new Thread(tetrisPlayer.Play);

            thread.Start();
            thread.Join();
        }
Example #2
0
        // you can get this code after registration on the server with your email
        // http://server-ip:8080/codenjoy-contest/board/player/[email protected]?code=12345678901234567890

        static void Main(string[] args)
        {
            Console.SetWindowSize(Console.LargestWindowWidth - 3, Console.LargestWindowHeight - 3);

            // creating custom Minesweeper's Ai client

            var tetrisPlayer = new YourSolver(ServerUrl);

            // starting thread with playing Minesweeper
            Thread thread = new Thread(tetrisPlayer.Play);

            thread.Start();
            thread.Join();
        }