[Tutor] Better flow for this?

R. Alan Monroe amonroe at columbus.rr.com
Wed Feb 12 15:37:56 CET 2014


> Also explain the logic in plain words. Else, we can only guess.

Were the comments not enough? You keep taking turns until you get home
or die. Each turn has 4 phases.

while playing:
    #phase 1 - fly every turn, you might die
    #phase 2 - stuff shoots at you every turn, you might die
    #phase 3 - may or may not get an event card, with certain cards you might die
    #phase 4 - you drop bombs if you're over a target, you can't die here
game over, print score


Alan



More information about the Tutor mailing list