1st Jul 2018, 12:30 PM
misgav yosef
misgav yosef - avatar
7 odpowiedzi
+ 3
Here you go. Things I'd change: - random numbers determine dying, - instead of returning message, print immediately, - end of input kills you, and - recall play if still alive. https://code.sololearn.com/cA3egio4Sswo
1st Jul 2018, 2:02 PM
John Wells
John Wells - avatar
+ 5
since line 30 is not within a method, self is not defined. Since noun_name is "" if we put it as part of __init__, that doesn't make sense. How would you like it to work?
1st Jul 2018, 12:47 PM
John Wells
John Wells - avatar
+ 5
WOW. you are a genious
1st Jul 2018, 2:56 PM
misgav yosef
misgav yosef - avatar
+ 5
Thank you, but programming for 45 years as a job helps.
1st Jul 2018, 3:38 PM
John Wells
John Wells - avatar
+ 4
That would take massive changes to your code. How would you like to do it? - My helping by stating do this, or - My reorganize code so it works.
1st Jul 2018, 1:07 PM
John Wells
John Wells - avatar
+ 3
your reorganize it, plz
1st Jul 2018, 1:10 PM
misgav yosef
misgav yosef - avatar
+ 2
i print "go kitchen", and the code print "gas explosion"
1st Jul 2018, 12:51 PM
misgav yosef
misgav yosef - avatar