0
Implementing Goblin game in Python 2.7
This is the example from the Python course / Object-Oriented Programming / 8 A Simple Game. I'd not been successful in in implementing this in Python 2.7. I've made some changes but it still doesn't work properly. Here's my code: https://gist.github.com/amartin1911/e8d89934a0fdea662602a1192f579534 And here's the output with the TypeError after some inputs: https://gist.github.com/amartin1911/47712e3680d78a9782e994fcaeb4e44f Any help would be appreciated. Thanks in advance.
1 Réponse
+ 4
Line 28: You have a typo: health_line should be healt_line (if you want it to match everything else)
Line 33: Unindent the return statement 4 spaces (otherwise None is returned for all conditions except <= 0)