high_low.py

Created by kml-style

Created on March 20, 2021

10.1 KB


from random import *
from math import *
valeff=[]
effectif=[]
techeff=[]
technique=0   # TECHNIQUE DE VOS JOUEURS
c=0           # VAR
niv=1         # NON DISPONIBLE POUR LE MOMENT
pieces=13500  # PIECES
icon_pack=0   # MAJ I
ldc_pack=0    # MAJ I
europa_pack=0 # MAJ I
hl_pack=0     # PACK HIGH LOW
gemmes=600    # MAJ I
cpoints=0     # POINTS DE CLASSEMENT
points=0      # VAR
journee=0     # SAISON
ldcnom=["L-Kimpembe-C","L-Gueye-C","L-Choupo Moting-C","L-Denayer-C","L-Cornet-C","L-Dubois-C","L-Sanson-C","L-Alvaro-C"] # MAJ I
ldcgen=[86,86,82,84,83,82,84,83] # MAJ I
ldcval=[60000,55000,20000,43500,35000,20000,40000,38500]
europanom=["E-Ikone-L","E-Remy-L","E-Niang-L","E-Nzonzi-L","E-Lala-L"] # MAJ I
europagen=[81,82,83,84,82] # MAJ I
europaval=[15000,17500,35000,35000,20000]
iconnom=["I-Zidane-I","I-Vieira-I","I-Petit-I","I-Desailly-I","I-Tresor-I","I-Platini-I","I-Henry-I","I-Trezeguet-I","I-Cantona-I"] # MAJ I
icongen=[96,92,92,91,92,94,92,91,91] # MAJ I
iconval=[1000000,580000,520000,450000,500000,750000,580000,450000,450000]
hlnom=["H-Khazri-L","H-Boudebouz-L","H-Caqueret-L","H-Ninga-L","H-Bernat-L","H-Benedetto-L","H-Rapinha-L","H-Fonte-L","H-Cherki-L","H-Golovin-L","H-Dagba-L","H-Lienard-L","H-Kalu-L"]
hlgen=[85,82,80,81,85,84,83,83,80,84,80,82,81]
hlval=[40000,17500,7000,12500,40000,28500,25000,20000,9000,30000,7000,15000,10000]
nom=["Neymar","Mbappe","Silva","Icardi","Di Maria","Sarabia","Marquinhos","Verrati","Depay","Aouar","Herrera","Payet","Thauvin","Dembele","Khazri","Cornet","Denayer","Marcelo","Marcal","Guimaeres","Toko Ekambi","Dubois","Sarr","Lala","Reine Adelaide","Ninga","Caqueret","Cherki"]
pos=["AG","AD","DC","BU","AD","MOC","DC","MC","BU","MC","MC","AG","AD","BU","AT","DLG","DC","DC","DC","MDC","BU","DD","DD","DLD","MOC","BU","MC","MOC"]
val=[400000,220000,47500,50000,42500,5000,60000,20000,30000,5000,3500,7500,3500,2500,2000,2000,1500,1000,1000,1000,1000,1000,1000,1000,750,500,500,500]
gen=[92,90,86,86,85,83,87,85,85,82,82,83,82,80,80,80,79,79,78,78,79,78,78,79,76,75,74,74]
vit=[90,96,60,76,82,82,69,68,80,74,72,75,80,75,76,88,70,58,72,72,82,76,80,76,84,88,68,80]
tir=[88,85,60,86,80,77,67,72,82,76,70,80,80,82,78,74,61,60,66,69,78,68,64,71,71,75,67,73]
pas=[91,84,72,71,86,81,76,83,80,82,81,83,81,70,76,76,68,67,70,75,67,76,75,80,74,63,74,72]
dri=[94,91,68,84,84,83,73,85,85,84,83,82,82,78,83,78,68,66,76,78,76,75,76,78,80,72,72,74]
dff=[36,41,89,33,35,56,88,76,31,70,72,45,31,30,41,76,80,80,78,78,23,78,74,75,32,20,72,36]
phy=[61,78,78,79,60,59,81,68,76,72,68,72,70,80,62,80,78,81,74,79,78,76,72,72,68,71,70,64]

## DEBUT DU PROGRAMME ##
print("Nom :")
nomclub=input()
while True:
  if journee==38:
    print()
    print("Saison terminee avec",cpoints,"points.")
    print("Bien joue !")
    rp=0
    rg=0
    rpi=0
    rpl=0
    rpe=0
    if cpoints>=90:
      rp=50000
      rg=1000
      rpi=2
      rpl=3
      rpe=3
    elif cpoints>=80:
      rp=50000
      rg=1000
      rpi=1
      rpl=2
      rpe=2
    elif cpoints>=70:
      rp=45000
      rg=1000
      rpl=2
      rpe=2 
    elif cpoints>=60:
      rp=35000
      rg=750
      rpl=1
      rpe=2
    elif cpoints>=50:
      rp=27500
      rg=500
      rpe=2
    elif cpoints>=40:
      rp=20000
      rg=250
      rpe=1
    elif cpoints>=30:
      rp=15000
    elif cpoints>=20:
      rp=7500
    elif cpoints>=10:
      rp=5000
    else:
      rp=2500            
    pieces+=rp
    gemmes+=rg
    europa_pack+=rpe
    ldc_pack+=rpl
    icon_pack+=rpi
    print()
    print("Pieces ( +",rp,"):",pieces)
    print("Gemmes ( +",rg,"):",gemmes)
    print("Pack Europa ( +",rpe,"):",europa_pack)
    print("Pack LDC ( +",rpl,"):",ldc_pack)
    print("Pack Icone ( +",rpi,"):",icon_pack)
    journee=0
    cpoints=0
  print()
  print("Journee",journee)
  print()
  var=0
  technique=0
  for i in range(len(techeff)):
    technique+=techeff[var]
    var+=1
  var=0
  value=0
  for i in range(len(valeff)):
    value+=valeff[var]
    var+=1    
  if c==0:
    print("Commande ?")
    commande=input()
  else:
    commande="hl"
  if commande=="hl":
    c1=randint(0,len(nom)-1)
    j1=[nom[c1],gen[c1],vit[c1],tir[c1],pas[c1],dri[c1],dff[c1],phy[c1],pos[c1]]
    c2=randint(0,len(nom)-1)
    while c1==c2:
      c2=randint(0,len(nom)-1)
    j2=[nom[c2],gen[c2],vit[c2],tir[c2],pas[c2],dri[c2],dff[c2],phy[c2],pos[c2]]
    print("GEN - VIT - TIR - PAS - DRI - DEF - PHY")    
    print(j1) 
    print("Categorie ? - minuscule")
    cat=input()
    print("'+' ou '-' ")
    hl=input()
    if cat=="phy":
      sj1=j1[7]
      sj2=j2[7]
    elif cat=="vit":  
      sj1=j1[2]
      sj2=j2[2]
    elif cat=="tir":
      sj1=j1[3]
      sj2=j2[3]  
    elif cat=="pas":
      sj1=j1[4]
      sj2=j2[4]
    elif cat=="dri":
      sj1=j1[5]
      sj2=j2[5]
    elif cat=="def":
      sj1=j1[6]
      sj2=j2[6]
    else:
      sj1=j1[1]
      sj2=j2[1]
    if hl=="+" and sj1<=sj2:
      c+=1
      print("GG,",c,"in a row")
      points+=1
    elif hl=="-" and sj2<=sj1:
      c+=1
      print("GG,",c,"in a row")
      points+=1
    else:
      print("Perdu ...")  
      c=0
      journee+=1
      if value<=500000:
        ptsadversaire=[0,1,2,3,4,5,6,7]
      elif value<=1000000:  
        ptsadversaire=[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7]
      elif value<=2000000:  
        ptsadversaire=[0,0,1,1,2,2,3,3,4,4,5,5,6,7]
      elif value<=5000000:
        ptsadversaire=[0,0,1,1,2,2,3,3,4,4,5,6,7]
      else:
        ptsadversaire=[0,0,1,1,2,2,3,3,4,5,6,7]
      ptsad=choice(ptsadversaire)
      print("Vous",points)
      print("Adversaire :",ptsad)
      if points>ptsad:
        cpoints+=3
        print("GAGNE !")
        pieces+=1500
      if points<ptsad:
        print("PERDU ")
        pieces-=250
      if points==ptsad:
        print("MATCH NUL")
        cpoints+=1  
      points=0
    if c==7:
      print("Vous avez gagne : 1 pack highlow")
      hl_pack+=1
      c=0
      journee+=1
      if value<=500000:
        ptsadversaire=[0,1,2,3,4,5,6,7]
      elif value<=1000000:  
        ptsadversaire=[0,1,1,2,2,3,3,4,4,5,5,6,6,7]
      elif value<=2000000:  
        ptsadversaire=[0,1,1,2,2,3,3,4,4,5,5,6,7]
      elif value<=5000000:
        ptsadversaire=[0,1,1,2,2,3,3,4,4,5,6,7]
      else:
        ptsadversaire=[0,1,1,2,2,3,3,4,5,6,7]
      ptsad=choice(ptsadversaire)
      print()
      print("Vous :",points)
      print("Adversaire :",ptsad)
      if points>ptsad:
        cpoints+=3
        print("GAGNE !")
        pieces+=1500
      elif points<ptsad:
        print("PERDU ")
        pieces-=250
      else:
        print("MATCH NUL")
        cpoints+=1
      points=0        
  elif commande=="pack" or commande=="open":
    print("Vous avez :")
    print(pieces,"pieces")
    print(gemmes,"gemmes")
    print(hl_pack,"pack high low - hl")
    print(europa_pack,"pack europa - B4")
    print(ldc_pack,"pack ldc - B5")
    print(icon_pack,"pack icone - B6")      
    print()
    print("Pack or : 2 500 - B1")
    print("Pack platine : 10 000 - B2")
    print("Pack diamant : 30 000  - B3")
    com=input()
    if com=="B1" and pieces>=2500:
      j=randint(12,len(nom)-1)
      effectif.append(nom[j])
      techeff.append(gen[j])
      valeff.append(val[j])
      print("Vous avez eu :",nom[j],gen[j])
      pieces-=2500
      # PACK OR
    if com=="B2" and pieces>=10000:
      j=randint(8,11)
      effectif.append(nom[j])
      techeff.append(gen[j])
      valeff.append(val[j])
      print("Vous avez eu :",nom[j],gen[j])
      pieces-=10000
      # PACK PLATINE
    if com=="B3" and pieces>=30000:
      j=randint(0,10)
      effectif.append(nom[j])
      techeff.append(gen[j])
      valeff.append(val[j])
      print("Vous avez eu :",nom[j],gen[j])
      pieces-=30000
      # PACK DIAMANT
    if com=="hl" and hl_pack>=1:
      j=randint(0,12)
      effectif.append(hlnom[j])
      techeff.append(hlgen[j])
      valeff.append(hlval[j])
      print("Vous avez eu :",hlnom[j],hlgen[j])
      hl_pack-=1
      # PACK HIGH LOW
    if com=="5hl" and hl_pack>=5:
      for i in range(5):
        j=randint(0,12)
        effectif.append(hlnom[j])
        techeff.append(hlgen[j])
        valeff.append(hlval[j])
        print("Vous avez eu :",hlnom[j],hlgen[j])
      hl_pack-=5
      # 5 PACK HL  
    if  com=="B4" and (gemmes>=500 or europa_pack>=1):
      j=randint(0,len(europanom)-1)
      effectif.append(europanom[j])
      techeff.append(europagen[j])
      valeff.append(europaval[j])
      print("Vous avez eu :",europanom[j],europagen[j])
      if europa_pack>=1:
        europa_pack-=1
      else:
        gemmes-=500
    if  com=="B5" and (gemmes>=750 or ldc_pack>=1):
      j=randint(0,len(ldcnom)-1)
      effectif.append(ldcnom[j])
      techeff.append(ldcgen[j])
      valeff.append(ldcval[j])
      print("Vous avez eu :",ldcnom[j],ldcgen[j])
      if ldc_pack>=1:
        ldc_pack-=1
      else:
        gemmes-=750
    if com=="B6" and icon_pack>=1:
      j=randint(0,len(iconnom)-1)
      effectif.append(iconnom[j])
      techeff.append(icongen[j])
      print("Vous avez eu :",iconnom[j],icongen[j])
      icon_pack-=1
  if commande=="rank" and len(techeff)>=1:
    print("--",nomclub,"--")
    print("---------------")
    print("Pieces :",pieces)
    print("Gemmes :",gemmes)
    print("Points de saison :",cpoints,"en",journee,"journee")
    print("Nombre de joueur :",len(effectif))
    print("Technique (",technique,") ",round(technique/len(effectif)))
    print("Valeur du club:",value) 
  if commande=="effectif":
    print("Effectif :",effectif)  
## BY KML_STYLE ##    
# BOUTIQUE #
# B1 - Pack or - 2.500 pieces
# B2 - Pack platine - 10.000 pieces
# B3 - Pack diamant - 30.000 pieces
# B4 - Pack europa - 500 gemmes + Recompense de saison
# B5 - Pack ldc - 750 gemmes + Recompense de saison
# B6 - Pack icone - Recompense de saison
# hl - Pack high low - Recompense de journee
# LE JEU #
# Une saison se joue en 38 journee 
# Chaque journee vous deverai pronostiquer si le joueur cache aura + ou - que le joueur donne dans a categorie de votre choix
# Le but est de faire 7 d'affile ou vous gagner un pack high low
# Votre equipe remporte 3 pts si votre score de victoire consecutive est > au score aleatoire adverse
# La force de votre club influe sur le resultat
# Chaque fin de saison, vous aurez des recompenses en fonction de vor points
# Amusez-vous bien ! #

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.