Example #1
0
        static void Main(string[] args)
        {
            //Console.WriteLine("Please enter the IPv4 Address of this server");
            //Server server = new Server(Console.ReadLine());

            //Console.WriteLine("Starting Listener on {0}:{1}", server.IpAddress, server.Port);

            //server.StartListener();

            Game.Game game = new Game.Game();

            game.AddPlayer(new Player("Kai"));
            game.AddPlayer(new Player("Max"));

            game.StartGame();
        }
Example #2
0
        private JObject NewPlayer(JObject data)
        {
            string name = (string)data.SelectToken("name");

            Console.WriteLine("[NEW PLAYER] {0}", name);

            Game.AddPlayer(new Player(name));

            return(createResponse(true, "Successfully added Player."));
        }