Roulette mit automatischer und manueller Strategie inklusive Verdopplungs-System zum Durchspielen.
from random import randint
import os
Tests = 0
Wins = 0
Looses = 0
Plays = 0
Money = 300000
Betting = 1000
Status = 0
while Tests < 1000:
while Money < 600000 and Money > 999:
if Betting == 64000:
Betting == 100000
if Betting > 10000:
Betting = 1000
Money -= Betting
Status = randint(0,2)
if Status == 0:
Money += Betting * 3
Betting = 1000
continue
elif Status == 1 or 2:
Betting *= 2
if Money > 1000:
print ("You Won!")
Wins += 1
Money = 300000
Tests += 1
elif Money < 1000:
print("You Lost!")
Looses += 1
Money = 300000
Tests += 1
print ("Wins = ", Wins)
print ("Looses = ", Looses)
from random import randint
import os
Status = 0
Money = 1000
while True :
list = ["list","0","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","black","red","1-12","2-12","3-12"]
Black = ["2", "4", "6", "8", "10", "11", "13", "15", "17", "20", "22", "24", "26", "28", "29","31","33","35"]
Red = ["1", "3", "5", "7", "9", "12", "14", "16", "18", "19", "21", "23", "25", "27", "30", "32", "34", "36"]
First12 = ["0","1","2","3","4","5","6","7","8","9","10","11","12"]
Second12 = ["13","14","15","16","17","18","19","20","21","22","23","24"]
Third12 = ["25","26","27","28","29","30","31","32","33","34","35","36"]
os.system ('cls')
print("---Elyes's Casino---")
print()
print("Welcome to Elyes's Casino, good Luck!")
print ("To see a list of the Inputs write List.")
print()
print ("Money :",Money)
print()
print("--------------------------------------")
Number = input("Input :")
Number = str(Number)
Number = str.lower(Number)
Payin = input("Pay-In :")
Payin = int(Payin)
Money -= Payin
print()
if Number == "list":
os.system ('cls')
print("---Elyes's Casino---")
print()
print("Here are the Inputs you can use, and their Payout rate.")
print("A number from 0 to 36 Payout : 36x")
print("Black Payout : 2x")
print("Red Payout : 2x")
print("1-12 Payout : 3x")
print("2-12 Payout : 3x")
print("3-12 Payout : 3x")
print ()
input(" Press [Enter] to continue.")
while Number not in list and not "list":
os.system ('cls')
print("---Elyes's Casino---")
print()
print("Your Input was INVALID.")
print ("To see a list of the Inputs write List.")
print()
print("--------------------------------------")
Number = input("Input :")
Number = str(Number)
Number = str.lower(Number)
print()
if Number == "list":
os.system ('cls')
print("---Elyes's Casino---")
print()
print("Here are the Inputs you can use, and their Payout rate.")
print("A number from 0 to 36 Payout : 36x")
print("Black Payout : 2x")
print("Red Payout : 2x")
print("1-12 Payout : 3x")
print("2-12 Payout : 3x")
print("3-12 Payout : 3x")
print ()
input(" Press [Enter] to continue.")
Winner = randint(0,42)
Winner = str(Winner)
if Number in list:
if Number == "black":
if Winner in Black:
Status = 1
Rate = 2
else: Status = 2
if Number == "red":
if Winner in Red:
Status = 1
Rate = 2
else: Status = 2
if Number == "1-12":
if Winner in First12:
Status = 1
Rate = 3
else: Status = 2
if Number == "2-12":
if Winner in Second12:
Status = 1
Rate = 3
else: Status = 2
if Number == "3-12":
if Winner in Third12:
Status = 1
Rate = 3
else: Status = 2
else:
if Number == Winner:
Status = 1
Rate = 36
else: Status = 2
os.system ('cls')
print("---Elyes's Casino---")
print()
print("--------------------------------------")
print()
print("The Input you Picked is : ", Number)
print ("The Winner Number is : ", Winner)
print()
if Winner in Black:
print("Color : Black")
elif Winner in Red:
print("Color : Red")
else:
print("Color : White")
if Winner in First12:
print("Row : First")
elif Winner in Second12:
print("Row : Second")
elif Winner in Third12:
print("Row : Third")
else:
print("Row : None")
print()
print("------------------------------------------------------")
if Status == 1:
print("You Won this bet and will get", Rate, "of your pay in.")
Payout = Rate * Payin
print("Pay-Out :",Payout)
Money += Payout
elif Status == 2:
print("You Lost this bet.")
Payout = 0
print("Pay-Out :",Payout)
print()
Continue = input("To leave write [1], to continue press anything")
if Continue == 1:
break
import random
import os
status = None
winner = None
Lost = None
Number = 1
def Screen():
os.system("cls")
print("*-*-*-*-*-*-*-*")
print("----Casino----")
print()
def Bet():
global Number
global Tokens
global Lost
Screen()
print(("■" * Number) + ("□" * 10))
print()
print ("If you want to Bet press [Enter]!")
print ("If you stop write [X]!")
status = input("")
winner = random.randint(1,100)
if winner < 50:
Number += 1
else:
Tokens =- 1
Screen()
print ("You Lost!")
Number = 1
print ("If you want to Bet press [Enter]!")
print ("If you stop write [X]!")
Lost = 1
status = input("")
Screen()
Tokens = input("Tokens :")
STokens = Tokens
while status != "x" or "X":
Screen()
print("Press [Enter] to Bet!")
print ("Or write [X] to Leave the Casino!")
while Lost != 1:
Bet()
status = input("Input :")
Screen()
print ("You Started with",STokens+".")
print ("And Left with",Tokens+".")
input ("Press [Enter] to continue!")