package gsg.server;

import gsg.infrastructure.Utils;
import gsg.server.logic.GameLoop;
import gsg.server.network.ConnectionLoop;

/**
 * @author zkejid@gmail.com
 *         Created: 13.07.15 22:55
 */
public class Server {
	public static void main(String[] args) {
		final ConnectionLoop connectionLoop = new ConnectionLoop(9189);
		final GameLoop gameLoop = new GameLoop();

		connectionLoop.setConnectionRegistrator(gameLoop);

		Utils.runLoop(connectionLoop);
		Utils.runLoopAndJoin(gameLoop);
	}


}

@@ -14,16 +14,39 @@
 erver;%0A%0A
+import gsg.client.Bot;%0A
 import g
@@ -499,15 +499,8 @@
 Loop
-AndJoin
 (gam
@@ -506,16 +506,35 @@
 meLoop);
+%0A%0A%09%09Bot.main(args);
 %0A%09%7D%0A%0A%0A%7D%0A

Put a runner of bot into runner of server