Example #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()
Example #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()
Example #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]
Example #4
0
def main():
    hostname = ask_hostname(HOSTNAME)
    server = GameServer(hostname)
    server.start()
Example #5
0
def main():
    hostname = ask_hostname(HOSTNAME)
    server = GameServer(hostname)
    server.start()