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);
	}


}

package gsg.server;

import gsg.client.Bot;
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.runLoop(gameLoop);

		Bot.main(args);
	}


}

Put a runner of bot into runner of server