classement_ibu_h_cdm_2022.py

Created by kml-style

Created on April 03, 2022

7.37 KB

Classement masculin de la coupe du monde 2021-2022.


from kandinsky import *
from ion import *
from time import sleep

def croix(x,y,color):
  fill_rect(x+12,y,2,30,color)
  fill_rect(x,y+14,45,2,color)
def croix2(x,y,color):
  fill_rect(x+11,y,4,30,color)
  fill_rect(x,y+13,45,4,color)
def fond(x,y,color):
  fill_rect(x,y,45,30,color)
def norway(x,y):
  fond(x,y,[255,0,0])
  croix2(x,y,[255,255,255])
  croix(x,y,[0,0,255])
def sweden(x,y):
  fond(x,y,[85,85,255])
  croix2(x,y,[184,255,0])
  croix(x,y,[184,255,0])    
def finland(x,y):
  fond(x,y,[255,2555,255])
  croix2(x,y,[0,0,255])
  croix(x,y,[0,0,255])    
def germany(x,y):
  fill_rect(x,y,45,10,[0,0,0])
  fill_rect(x,y+10,45,10,[255,0,0])
  fill_rect(x,y+20,45,10,[225,255,0])
def italia(x,y):
  fill_rect(x,y,15,30,[0,155,0])
  fill_rect(x+15,y,15,30,[255,255,255])
  fill_rect(x+30,y,15,30,[255,0,0])
def austria(x,y):
  fill_rect(x,y,45,10,[255,0,0])
  fill_rect(x,y+10,45,10,[255,255,255])
  fill_rect(x,y+20,45,10,[255,0,0])
def france(x,y):
  fill_rect(x,y,15,30,[0,0,255])
  fill_rect(x+15,y,15,30,[255,255,255])
  fill_rect(x+30,y,15,30,[255,0,0])
def belarus(x,y):
  fill_rect(x,y,45,15,[0,185,0])
  fill_rect(x,y+15,45,15,[255,0,0])
def russia(x,y):
  fill_rect(x,y,45,10,[255,255,255])
  fill_rect(x,y+10,45,10,[0,0,255])
  fill_rect(x,y+20,45,10,[255,0,0])
#def canada(x,y):
#  fill_rect(x,y,15,30,[255,0,0])
#  fill_rect(x+15,y,15,30,[255,255,255])
#  fill_rect(x+30,y,15,30,[255,0,0])                
#def ukraine(x,y):
#  fill_rect(x,y,45,15,[225,255,0])
#  fill_rect(x,y+15,45,15,[65,65,255])
#def cz(x,y):
#  fill_rect(x,y,45,15,[255,255,255])
#  fill_rect(x,y+15,45,15,[255,0,0])
#  i=1
#  for i in range(8):
#    fill_rect(x-1+i,y+(2*i),i,30-(4*i),[0,0,255])
#    i+=1
def switzerland(x,y):
  fill_rect(x,y,45,30,[255,0,0])
  fill_rect(x+10,y+12,25,6,[255,255,255])
  fill_rect(x+20,y+2,5,26,[255,255,255])
def lituania(x,y):
  fill_rect(x,y,45,10,[245,225,0])
  fill_rect(x,y+10,45,10,[0,205,0])
  fill_rect(x,y+20,45,10,[255,25,25])
  
def p1():
  fill_rect(0,0,360,360,[245,245,245])
  draw_string("CLASSEMENT COUPE DU MONDE HOMMES",0,5,[0,0,0],[245,245,245])
  
  draw_string("1-",0,35,[255,185,0],[245,245,245])
  france(20,30) # [-] #
  draw_string("Q. FILLON-MAILLET  | 984",70,35,[255,185,0],[245,245,245])
  draw_string("++",240,35,[255,0,0],[245,245,245])
    
  draw_string("2-",0,67,[0,0,0],[245,245,245])
  norway(20,62) # [+3] #
  draw_string("Sturla LAEGREID    | 736",70,67,[0,0,0],[245,245,245])   
  
  draw_string("3-",0,99,[0,0,255],[245,245,245])
  sweden(20,94) # [-] #
  draw_string("S. SAMUELSSON      | 717",70,99,[0,0,255],[245,245,245])

  draw_string("4-",0,131,[0,0,0],[245,245,245])
  norway(20,126) # [-] #
  draw_string("Vetle CHRISTIANSEN | 708",70,131,[0,0,0],[245,245,245])    
  
  draw_string("5-",0,163,[0,0,0],[245,245,245])
  france(20,158) # [-3] #
  draw_string("Emilien JACQUELIN  | 706",70,163,[0,0,0],[245,245,245])
    
  draw_string("6-",0,195,[255,0,0],[245,245,245])
  norway(20,190) # [-] #
  draw_string("Tarjei BOE         | 601",70,195,[255,0,0],[245,245,245])     
  
def p2():
  fill_rect(0,0,360,360,[245,245,245])
  
  draw_string("7-",5,30,[0,0,0],[245,245,245])
  france(30,25) # [-] #
  draw_string("Simon DESTHIEUX   | 590",80,30,[0,0,0],[245,245,245])
  
  draw_string("8-",5,62,[0,0,0],[245,245,245])
  germany(30,57) # [-] #
  draw_string("Benedikt DOLL     | 557",80,62,[0,0,0],[245,245,245])
  
  draw_string("9-",5,94,[255,0,0],[245,245,245])
  norway(30,89) # [+1] #
  draw_string("Sivert BAKKEN     | 553",80,94,[255,0,0],[245,245,245])
  
  draw_string("10-",0,126,[0,0,0],[245,245,245])
  germany(30,121) # [+6] #
  draw_string("Erik LESSER       | 535",80,126,[0,0,0],[245,245,245])   
  
  draw_string("11-",0,158,[0,0,0],[245,245,245])
  germany(30,153) # [+1] #
  draw_string("Johannes KUEHN    | 484",80,158,[0,0,0],[245,245,245])
  
  draw_string("12-",0,190,[0,0,0],[245,245,245])
  finland(30,185) # [-1] #
  draw_string("Tero SEPPALA      | 468",80,190,[0,0,0],[245,245,245]) 
  
def p3():
  fill_rect(0,0,360,360,[245,245,245])
  
  draw_string("13-",0,30,[0,0,0],[245,245,245])
  norway(30,25) # [-4] #
  draw_string("Johannes BOE      | 440",80,30,[0,0,0],[245,245,245])
  draw_string("[C]",200,30,[255,185,0],[245,245,245])
  
  draw_string("14-",0,62,[0,0,0],[245,245,245])
  france(30,57) # [+1] # 
  draw_string("Fabien CLAUDE     | 434",80,62,[0,0,0],[245,245,245])
  
  draw_string("15-",0,94,[0,0,0],[245,245,245])
  austria(30,89) # [+4] #
  draw_string("Simon EDER        | 431",80,94,[0,0,0],[245,245,245])
  
  draw_string("16-",0,126,[0,0,0],[245,245,245])
  germany(30,121) # [+1] #
  draw_string("Roman REES        | 429",80,126,[0,0,0],[245,245,245])   
   
  draw_string("17-",0,158,[0,0,0],[245,245,245])
  russia(30,153) # [-4] #
  draw_string("Alexander LOGINOV | 413",80,158,[0,0,0],[245,245,245])
  
  draw_string("18-",0,190,[0,0,0],[245,245,245])
  germany(30,185) # [+6] #
  draw_string("Philipp NAWRATH   | 410",80,190,[0,0,0],[245,245,245])
  
def p4():
  fill_rect(0,0,360,360,[245,245,245])
  
  draw_string("19-",0,30,[0,0,0],[245,245,245])
  belarus(30,25) # [-5] #
  draw_string("Anton SMOLSKI     | 405",80,30,[0,0,0],[245,245,245])   
  
  draw_string("20-",0,62,[0,0,0],[245,245,245])
  italia(30,57) # [-2] #
  draw_string("Lukas HOFER       | 404",80,62,[0,0,0],[245,245,245])
  
  draw_string("21-",0,94,[0,0,0],[245,245,245])
  norway(30,89) # [+1] #
  draw_string("Filip ANDERSEN    | 403",80,94,[0,0,0],[245,245,245])
  
  draw_string("22-",0,126,[0,0,0],[245,245,245])
  sweden(30,121) # [+5] #
  draw_string("Martin PONSILUOMA | 381",80,126,[0,0,0],[245,245,245])
  
  draw_string("23-",0,158,[0,0,0],[245,245,245])
  france(30,153) # [-2] # 
  draw_string("Antonin GUIGONNAT | 379",80,158,[0,0,0],[245,245,245])
  
  draw_string("24",0,190,[0,0,0],[245,245,245])
  italia(30,185) # [-1] #
  draw_string("Thomas BORMOLINI  | 355",80,190,[0,0,0],[245,245,245])
  
  
def p5():
  fill_rect(0,0,360,360,[245,245,245])
  
  draw_string("25-",0,30,[0,0,0],[245,245,245])
  lituania(30,25) # [+4] #
  draw_string("Vytautas STRAULIA | 352",80,30,[0,0,0],[245,245,245])

  draw_string("26-",0,62,[0,0,0],[245,245,245])
  russia(30,57) # [-6] #
  draw_string("Eduard LATYPOV    | 348",80,62,[0,0,0],[245,245,245])
  
  draw_string("27-",0,94,[0,0,0],[245,245,245])
  switzerland(30,89) # [-2] #
  draw_string("Benjamin WEGER    | 339",80,94,[0,0,0],[245,245,245])
  
  draw_string("28-",0,126,[0,0,0],[245,245,245])
  #cz(30,121)
  draw_string("Michal KRCMAR     | 332",80,126,[0,0,0],[245,245,245])
  
  draw_string("29-",0,158,[0,0,0],[245,245,245])
  austria(30,153) # [-3] #
  draw_string("Felix LEITNER     | 315",80,158,[0,0,0],[245,245,245])

  draw_string("30-",0,190,[0,0,0],[245,245,245])
  russia(30,185) # [-] #
  draw_string("Said KHALILI      | 222",80,190,[0,0,0],[245,245,245])
 
page=1
p1()              
while True:
  if page==1 and keydown(KEY_DOWN)==True:    
    page+=1
    p2()
    sleep(0.15)
  if page==2 and keydown(KEY_UP)==True:
    page-=1
    p1()
    sleep(0.15)
  if page==2 and keydown(KEY_DOWN)==True:
    page+=1
    p3()
    sleep(0.15)
  if page==3 and keydown(KEY_UP)==True:
    page-=1
    p2()
    sleep(0.15)
  if page==3 and keydown(KEY_DOWN)==True:
    page+=1
    p4()
    sleep(0.15)
  if page==4 and keydown(KEY_UP)==True:
    page-=1
    p3()  
    sleep(0.15)   
  if page==4 and keydown(KEY_DOWN)==True:
    page+=1
    p5()
    sleep(0.15)
  if page==5 and keydown(KEY_UP)==True:
    page-=1
    p4()
    sleep(0.15)

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.