Esempio n. 1
0
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()
Esempio n. 2
0
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()
Esempio n. 3
0
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]
Esempio n. 4
0
def main():
    hostname = ask_hostname(HOSTNAME)
    server = GameServer(hostname)
    server.start()
Esempio n. 5
0
def main():
    hostname = ask_hostname(HOSTNAME)
    server = GameServer(hostname)
    server.start()