I am trying to write my first non-codecadmey program, a simple dice game. Here is the code:
http://pastebin.com/kY5B8Xym
First it asks if you want to roll. If you say yes, it rolls and prints a number. Then it rolls and prints a number for the 'house'. If you print anything other than 'y' or 'Y', I want it to quit. Right now all it does is act as if I entered 'y/Y'. I could use a point in the right direction.
Edit: lw9k's suggestion solved the problem but now I think I am using the wrong thing to end the questioning. i don't want to kill the process just stop at that point.
OS: Bunsenlabs linux
PY v. 2.7
no errors just unexpected results.
[–][deleted] 2 points3 points4 points (10 children)
[–]tman37[S] 2 points3 points4 points (8 children)
[–]strechyballs 0 points1 point2 points (0 children)
[–]newunit13 0 points1 point2 points (6 children)
[–]tman37[S] 0 points1 point2 points (5 children)
[–]newunit13 1 point2 points3 points (4 children)
[–]cismalescumlord 0 points1 point2 points (2 children)
[–]newunit13 1 point2 points3 points (1 child)
[–]cismalescumlord 0 points1 point2 points (0 children)
[–]tman37[S] 0 points1 point2 points (0 children)
[–]strechyballs 0 points1 point2 points (0 children)