Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fixes #3

Open
ckiefer0 opened this issue May 16, 2017 · 2 comments
Open

Bug fixes #3

ckiefer0 opened this issue May 16, 2017 · 2 comments

Comments

@ckiefer0
Copy link

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.

@abhinav-shrivastava
Copy link

abhinav-shrivastava commented Aug 3, 2018

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.

@kimsin98
Copy link

The solution also does not reroll the dice. It may be better to remove solutions entirely if it doesn't work. It only confuses the readers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants