May-28-2017, 08:03 PM
This is your error:
if fa == 'yes' or 'y':Python reads it like this:
if (fa == 'yes') or ('y'):Since any non-empty string evaluates as True, the second part is True, and the whole expression is always True. You want:
if fa == 'yes' or fa == 'y':or
if fa in ('yes', 'y'):I would also use break instead of quit, and more descriptive variable names (a and fa are confusing). Also, if you put the three dice into a list, and then sort that list, then the comparisons are much easier (especially for straights).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures