Пример #1
0
def main():
    while True:
        # get the new state of the game
        pw = PlanetWars()

        # make a turn (your code)
        do_turn(pw)

        # finish the turn
        pw.finish_turn()
Пример #2
0
def main():
    # This is the main routine, it ...
    while True:
        # Creates a PlanetWars game state object
        pw = PlanetWars()

        # makes a turn
        do_turn(pw)

        # and finishes it
        pw.finish_turn()
Пример #3
0
def main():
    while True:
        pw = PlanetWars()
        do_turn(pw)
        pw.finish_turn()