casino.py

Created by gengisclan

Created on October 06, 2021

1.46 KB

Jouez au jeu de la roulette en appuyant sur var. Dans le futur, d’autres jeu serons ajoutés


from random import *
def roulette():
  lance=5
  paris=int(input("votre paris: "))
  fin=[]
  if lance==5:
    jeton=100
    lance=lance+3
  if paris>jeton:
    paris=jeton
    print("Votre paris a ete mis a")
    print(paris," jetons")
  while fin!=25:
    fin=randint(0,50)
    b=randint(0,3)
    c=randint(0,3)
    d=randint(1,3)
    print(b,c,d)
    if fin==25:
      print()
      print()
      print()
      print()
      print()
      print(b,c,d,"<--")
      print()
      if b==c==d:          
        print("gagne")
        if b==0:
          paris=paris*2
          jeton=jeton+paris
          print("Vous avez ",jeton," jetons")
        if b==1:
          paris=paris*3
          jeton=jeton+paris
          print("Vous avez ",jeton," jetons")
        if b==2:
          paris=paris*4
          jeton=jeton+paris
          print("Vous avez ",jeton," jetons")
        if b==3:
          paris=paris*5
          jeton=jeton+paris
          print("Vous avez ",jeton," jetons")
      else:
        print("perdu")
      jeton=jeton-paris
      print("Vous avez ",jeton," jetons") 
      print("Une autre ?")
      reponce=input()
      if reponce=="oui":
        fin=[]
        if jeton==0:
            print("Vous etes ruinne")
            stop
        paris=int(input("votre paris: "))
        if paris>jeton:
          paris=jeton
          print("Votre paris a ete mis a")
          print(paris," jetons")
          if jeton==0:
            print("Vous etes plumes")

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.