def main(): from share.ask_hostname import ask_hostname hostname = ask_hostname(HOSTNAME) from clientside.gui_client import GuiClient game = GuiClient(hostname, (900, 700)) game.run()
def main(): if len(argv)==2: n = int(argv[1]) else: n = int(argv[2]) hostname = ask_hostname(HOSTNAME) running = Event() bots = [Bot(hostname, running = running) for i in range(n)] [bot.start() for bot in bots] [bot.join() for bot in bots]
def main(): hostname = ask_hostname(HOSTNAME) server = GameServer(hostname) server.start()