1
Scripting Languages / Re: Simple Numbers Mind reading game.
« on: December 25, 2014, 01:15:41 pm »
I haven't been online for awhile on evilzone, thanks for the reply and i have modified the code.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#!/usr/bin/python
import random
print("\nby Eramen.\n\n"
"Choose a Number in your mind from 1-10")
raw_input("\nPress Enter to Continue...")
multNumb = random.randint(1, 9)
addNumb = random.randint(1, 9)
info = "\nMultiply the Number by: "
print info, multNumb
raw_input("\n...")
print("\nDivide the Total by your first number")
raw_input("\n")
info2 = "then add: "
print info2, addNumb
raw_input("\n...")
print("\nAlso add your initial number")
raw_input("\n")
digit = multNumb + addNumb
yourNumb = "\nYour Number should be: "
while True:
value = raw_input("\nNow, what number do you get: ")
if not value.isdigit(): continue
print yourNumb, int(value) - digit,'\n'
break