10-20-2009, 11:28 AM
(This post was last modified: 10-20-2009, 12:28 PM by Mr.FeellingLeSS.)
Finaly its done!
Its a Gambling prototype-program with for now only roullette, I'm not sure if i will finish the other games or start on something new.
i think its bug free(script and grammar), took me about 5-8 hours to make and debug
If you copy something of my script please insert a little thanks
ENJOY PLAYING
Its a Gambling prototype-program with for now only roullette, I'm not sure if i will finish the other games or start on something new.
i think its bug free(script and grammar), took me about 5-8 hours to make and debug
Code:
import os
import platform
def clearer():
systemver=platform.release()
if systemver=='XP':
os.system("cls")
elif systemver=='Vista':
os.system("clear")
else:
os.system("clear")
clearer()
lopper=1
print "#################################################"
print "# Welcome to William's GamblingSystem! #"
print "# #"
print "# Prototype Edition! #"
print "# #"
print "#################################################"
raw_input(" ")
print " By William aka Mr.FeellingLeSS "
raw_input(" ")
print " Thanks to: "
print " "
print " The members of Support Forums.net "
print " "
print " TheNewBoston aka Bucky From Youtube "
print " "
raw_input("press enter to continue...")
clearer()
firstname=raw_input("First Enter you firstname: ")
clearer()
lastname=raw_input("Now i would like to know your lastname: ")
clearer()
print "hello "+firstname+" "+lastname
raw_input("")
clearer()
print "now lets enter the gambling scene.... BUT first you need a cool titel"
raw_input("press enter to continue...")
clearer()
print "to do that you need to choise one of my Standards, or make your own"
clearer()
goodnumber=0
while goodnumber==0:
if goodnumber==1 : break
choise=input("type 1 for a list of Standerds... and 2 for making your own: ")
clearer()
if choise==1 or choise==2:
goodnumber=1
else:
print "wrong input"
raw_input("")
while lopper<=2:
if lopper==2: break
if choise==1:
print "1. Pokerface"
print "2. Bluffer"
print "3. Loan Shark"
print "4. use nothing"
titel=input("just type the number infront of titel to pick them, if you changed your mind and want to make your own type 5: ")
clearer()
if titel==1:
print "Hello Pokerface "+firstname+" "+lastname
titel="Pokerface "
raw_input("press enter to continue...")
lopper+=1
clearer()
elif titel==2:
print "Hello Bluffer "+firstname+" "+lastname
titel="Bluffer "
raw_input("press enter to continue...")
lopper+=1
clearer()
elif titel==3:
print "Hello Loan Shark "+firstname+" "+lastname
titel="Loan Shark "
lopper+=1
raw_input("press enter to continue...")
clearer()
elif titel==4:
print "Hello "+firstname+" "+lastname
titel=""
raw_input("press enter to continue...")
lopper+=1
clearer()
elif titel==5:
choise+=1
else:
raw_input("wrong input")
clearer()
else:
if choise==2:
titel=raw_input("Enter the titel you want: ")
print "Hello "+titel+" "+firstname+" "+lastname
raw_input("press enter to continue...")
clearer()
lopper+=1
game=22
raw_input("okay... Now lets choise your game")
while game==22:
if game==23: break
print "1. Roullette!"
print "2. Poker Texas hold 'em (coming soon)"
print "3. horse Running(coming soon!)"
chosengame=input("Choise one by typing the number ")
clearer()
if chosengame==1:
print "Let the Ball role!"
raw_input("")
game+=1
elif chosengame==2:
print "Poker it is!"
game+=1
elif chosengame==3:
print "GO Horsie GO!"
else:
print "wrong input!"
while lopper==2:
if lopper==3: break
if chosengame==1:
rnfull={1:"red",2:"black",3:"red",4:"black",5:"red",6:"black",7:"red",8:"black",9:"red",10:"black",11:"red",12:"black",13:"red",14:"black",15:"red",16:"black",17:"red",18:"black",19:"red",20:"black",21:"red",22:"black",23:"red",24:"black",25:"red",26:"black",27:"red",28:"black",29:"red",30:"black",31:"red",32:"black",33:"red",34:"black",35:"red",36:"black"}
rmoney=1500
import random
clearer()
print "You will start with $1500"
raw_input("")
print "You will have to bet on a number or a colour or both."
raw_input("")
print "When you have the number right you get 36 x your bet .. YEA"
raw_input("")
print "If you have the colour right you win 2 x your bet ... wow yippie...."
raw_input("")
clearer()
print "Ready to go?"
changeornot=raw_input("Or do you want to change your game? type 1 for go, and 2 for changing: ")
clearer()
if changeornot=='2':
print "to which game you want to switch?"
print "1. for staying anyway( MAKE UP YOUR MIND :P)"
print "2. Poker"
print "3. Horse Racing"
chosengame=input("Just type the number: ")
clearer()
raw_input("")
playedonce=1
gameplaying=1
while gameplaying==1:
if gameplaying==0: break
if playedonce==0:
xxx-=1
rightnumberbet-=1
rightbet-=1
wrongin-=1
wrongin=0
while wrongin==0:
if wrongin==1: break
rnuserchosencolour=raw_input("Choise you colour red/black: ")
if rnuserchosencolour=="red" or rnuserchosencolour=="black":
rightbet=0
while rightbet==0:
if rightbet==1: break
betoncolour=input("type the amount of cash you want to bet: ")
if betoncolour>rmoney:
print "YOU CHEATER"
print "don't bet more then you have"
raw_input("")
elif betoncolour< 1:
print "To low bet"
else:
rightbet+=1
wrongin+=1
rmoney-=betoncolour
lol=0
else:
print "wrong input"
clearer()
clearer()
print "you picked colour: "+rnuserchosencolour
raw_input("")
xxx=0
while xxx==0:
if xxx==1: break
rnuserchosennumber=input("Enter a number from 1 to 36 if you want to, else enter 0: ")
rightnumberbet=0
while rightnumberbet==0:
if rightnumberbet==1: break
if rnuserchosennumber==0:
print "you have not betted on a number only on colour"
rightnumberbet+=1
xxx+=1
raw_input("")
lolz=0
elif rnuserchosennumber > 0:
raw_input("")
betonnumber=input("PLease enter the amount you of cash you wish to bet one the number: ")
if betonnumber>rmoney:
print "YOU CHEATER"
print "don't bet more then you have"
raw_input("")
else:
rightnumberbet+=1
lolz=0
rmoney-betonnumber
else:
print "Wrong input"
clearer()
clearer()
print "okay Let the Ball role!"
rncolours=["red","black"]
rnnumbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]
rnchosencolour=random.choice(rncolours)
rnchosennumber=random.choice(rnnumbers)
if rnuserchosencolour==rnchosencolour:
betoncolour=betoncolour*2
lol+=1
if rnuserchosennumber==rnchosennumber:
betonnumber=betonnumber*2
lolz+=1
if lolz==1 and lol==1:
rnwoncash=betonnumber+betoncolour
elif lol==1:
rnwoncash=betoncolour
elif lolz==1:
rnwoncash=betonnumber
else:
rnwoncash=0
if rnuserchosencolour==rnchosencolour and rnuserchosennumber==rnchosennumber:
print "You won by number and colour! Profit: ", rnwoncash
rmoney+=rnwoncash
raw_input("")
elif rnuserchosencolour==rnchosencolour:
print "You won by colour! Profit: ", rnwoncash
rmoney+=rnwoncash
raw_input("")
elif rnuserchosennumber==rnchosennumber:
print "You won by number! Profit: ", rnwoncash
rmoney+=rnwoncash
raw_input("")
else:
if lolz==1 and lol==1:
rnlostcash=betonnumber+betoncolour
elif lol==1:
rnlostcash=betoncolour
elif lolz==1:
rnlostcash=betonnumber
else:
rnlostcash=0
print "You have lost! Loss: ", rnlostcash
raw_input("")
clearer()
choiseplayornot=1
while choiseplayornot==1:
if choiseplayornot==0: break
playagainornot=raw_input("Want to play again or? yes/no: ")
if playagainornot=="yes":
print "restarting!"
clearer()
playedonce-=1
print rmoney
print " "
choiseplayornot-=1
elif playagainornot=="no":
chosengame=input(" type 2 for poker, 3 for Horse Racing and 4 for exiting")
print "bye!"
clearer()
gameplaying-=1
choiseplayornot-=1
if chosengame==4:
exit
else:
print "Wrong input"
clearer()
else:
print "Not Yet Made!"
ENJOY PLAYING