示例#1
0
    time.sleep(0.5)

    print "[CLI] Making a move."
    game.makeMove(2)
    time.sleep(0.5)
else:
    time.sleep(2)

time.sleep(5)

if not hasattr(game, 'stats'):
    print '[CLI] No game found: could not join any game.'
    exit(1)

print "[CLI] Game stats:"
print game.stats()

# Let the listener wait for Jos to leave.
if options.listenOnly:
    time.sleep(10)
print "[CLI] Leaving the game 'Ubergame'."
game.kill()
time.sleep(0.5)

print "[CLI] Service stats:"
print service.stats()

print "[CLI] Stopping the ManyInARowService."
service.kill()
time.sleep(0.5)