Silly people flipping 0 coins ><
This commit is contained in:
parent
88723d21a4
commit
16a9279b21
|
@ -29,13 +29,14 @@ def coin(inp):
|
||||||
|
|
||||||
if count > 9001:
|
if count > 9001:
|
||||||
return "Too many coins! Maximum is 9001."
|
return "Too many coins! Maximum is 9001."
|
||||||
# depending on the count, we use two different methods to get the output
|
elif count == 1:
|
||||||
if count == 1:
|
|
||||||
flip = getrandbits(1)
|
flip = getrandbits(1)
|
||||||
if flip == 1:
|
if flip == 1:
|
||||||
return "You flip a coin and get heads."
|
return "You flip a coin and get heads."
|
||||||
else:
|
else:
|
||||||
return "You flip a coin and get tails."
|
return "You flip a coin and get tails."
|
||||||
|
elif count == 0:
|
||||||
|
return "You make a coin flipping motion with your hands."
|
||||||
else:
|
else:
|
||||||
flips = flip_simple(count)
|
flips = flip_simple(count)
|
||||||
return "You flip %i coins and get " \
|
return "You flip %i coins and get " \
|
||||||
|
|
Reference in a new issue