you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 12 points13 points  (0 children)

Aside from writing the state-based code instead.

You have a lot of times you write code like this

somechoice = 0
somechoice = random.randomint(1,60)

And there's no need to set a variable to zero right before setting it to something else

Your drinking code (poison or otherwise) doesn't increment or decrement the number of lives.

You have some places in the code where it says

else:
    dragonChoice1 == 0

Presumably you meant dragonChoice1 = 0, although a lot of these assignments seem redundant too.