static void Main(string[] args)
        {
            var client = new SnakeBattleClient(SERVER_ADDRESS);
            client.Run(DoRun);

            Console.ReadKey();
            client.InitiateExit();
        }
Example #2
0
        //const string SERVER_ADDRESS = "http://192.168.1.250:8080/codenjoy-contest/board/player/xcz570c3b2uvpglcvgry?code=2139264015254690273&gameName=snakebattle";

        static void Main(string[] args)
        {
            Console.OutputEncoding = Encoding.UTF8;
            var client = new SnakeBattleClient(SERVER_ADDRESS);

            client.Run(new Decider());

            Console.ReadKey();
            client.InitiateExit();
        }