You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also faced this error while trying this tutorial and as per @ckiefer0's suggestion using raw_input will obviously fix it for python 2.x versions but will break it for python 3 as raw_input() is completely replaced by input() and will end up raising NameError: name 'raw_input' is not defined.
In the solution for runner.py runner.consecutive_wins is not defined and it should be reset if a wrong answer is given.
Furthermore, I get a NameError if I type 'y' to continue playing so I would suggest using raw_input() in both the excercise and the solution.
The text was updated successfully, but these errors were encountered: