classement_ibu_f_cdm_2021.py

Created by kml-style

Created on January 17, 2022

7.26 KB

Classement féminin de la coupe du monde de biathlon 2020-2021.


from ion import *
from kandinsky 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 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 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 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 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 p1():
  fill_rect(0,0,360,360,[245,245,245])
  draw_string("CLASSEMENT COUPE DU MONDE FEMMES",0,5,[0,0,0],[245,245,245])
  
  draw_string("1-",0,35,[255,185,0],[245,245,245])
  norway(20,30) # [-] #
  draw_string("Tiril ECKHOFF    | 1152",70,35,[255,185,0],[245,245,245])
  draw_string("++",200,35,[255,0,0],[245,245,245])
  
  draw_string("2-",0,67,[0,0,0],[245,245,245])
  norway(20,62) # [-] #
  draw_string("Marte ROEISELAND | 963",70,67,[0,0,0],[245,245,245])
  
  draw_string("3-",0,99,[0,0,0],[245,245,245])
  germany(20,94) # [+1] #
  draw_string("Franziska PREUSS | 840",70,99,[0,0,0],[245,245,245])
  
  draw_string("4-",0,131,[0,0,0],[245,245,245])
  sweden(20,126) # [-1] #
  draw_string("Hanna OEBERG     | 826",70,131,[0,0,0],[245,245,245])
  
  draw_string("5-",0,163,[255,0,0],[245,245,245])
  italia(20,158) # [-] #
  draw_string("Dorothea WIERER  | 821",70,163,[255,0,0],[245,245,245])
  
  draw_string("6-",0,195,[255,0,0],[245,245,245])
  austria(20,190) # [-] #
  draw_string("Lisa HAUSER      | 818",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,255],[245,245,245])
  belarus(30,25) # [+1] #
  draw_string("Dzinara ALIMBEKAVA| 734",80,30,[0,0,255],[245,245,245])
  
  draw_string("8-",5,62,[255,0,0],[245,245,245])
  norway(30,57) # [+3] #
  draw_string("Ingrid TANDREVOLD | 707",80,62,[255,0,0],[245,245,245])
  
  draw_string("9-",5,94,[0,0,0],[245,245,245])
  france(30,89) # [-2] #
  draw_string("Anais CHEVALIER   | 677",80,94,[0,0,0],[245,245,245])
  
  draw_string("10-",0,126,[0,0,0],[245,245,245])
  germany(30,121) # [-] # 
  draw_string("Denise HERRMANN   | 667",80,126,[0,0,0],[245,245,245])
  
  draw_string("11-",0,158,[0,0,0],[245,245,245])
  cz(30,153) # [-2] #
  draw_string("Marketa DAVIDOVA  | 649",80,158,[0,0,0],[245,245,245])   
  
  draw_string("12-",0,190,[0,0,0],[245,245,245])
  sweden(30,185) # [-] #
  draw_string("Elvira OEBERG     | 631",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])
  france(30,25) # [+1] #   
  draw_string("Julia SIMON       | 575",80,30,[0,0,0],[245,245,245])  
  
  draw_string("14-",0,62,[0,0,0],[245,245,245])
  sweden(30,57) # [-1] #
  draw_string("Linn PERSSON      | 572",80,62,[0,0,0],[245,245,245])
  
  draw_string("15-",0,94,[0,0,0],[245,245,245])   
  france(30,89) # [-] #
  draw_string("Justine BRAISAZ   | 511",80,94,[0,0,0],[245,245,245])   
 
  draw_string("16-",0,126,[0,0,0],[245,245,245])     
  italia(30,121) # [-] #
  draw_string("Lisa VITTOZI      | 449",80,126,[0,0,0],[245,245,245])      
  
  draw_string("18-",0,158,[0,0,0],[245,245,245])     
  ukraine(30,153) # [+2] #  
  draw_string("Yuliia DZHIMA     | 445",80,158,[0,0,0],[245,245,245])     
  
  draw_string("16-",0,190,[0,0,0],[245,245,245])   
  france(30,185) # [-2] #
  draw_string("Anais BESCOND     | 442",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]) 
  russia(30,25) # [-2] #
  draw_string("Svetlana MIRONOVA | 440",80,30,[0,0,0],[245,245,245])
      
  draw_string("21-",0,62,[0,0,0],[245,245,245])
  russia(30,57) # [+4] #
  draw_string("Uliana KAISHEVA   | 394",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("Karoline KNOTTEN  | 384",80,94,[0,0,0],[245,245,245])     
  
  draw_string("22-",0,126,[0,0,0],[245,245,245])     
  germany(30,121) # [+1] #  
  draw_string("Janina HETTICH    | 379",80,126,[0,0,0],[245,245,245])     
  
  draw_string("23-",0,158,[0,0,0],[245,245,245])
  belarus(30,153) # [+4] #
  draw_string("Hanna SOLA        | 366",80,158,[0,0,0],[245,245,245])
  
  draw_string("24-",0,190,[0,0,0],[245,245,245])     
  germany(30,185) # [-] #   
  draw_string("Vanessa HINZ      | 364",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])     
  austria(30,25) # [-] # 
  draw_string("Dunja ZDOUC       | 361",80,30,[0,0,0],[245,245,245])     
  
  draw_string("26-",0,62,[0,0,0],[245,245,245])
  canada(30,57) # [-5] #
  draw_string("Emma LUNDER       | 324",80,62,[0,0,0],[245,245,245])              
  
  draw_string("27-",0,94,[0,0,0],[245,245,245])
  switzerland(30,89) # [+4] #
  draw_string("Lena HAECKI       | 321",80,94,[0,0,0],[245,245,245])
  
  draw_string("28-",0,126,[0,0,0],[245,245,245])
  sweden(30,121) # [-1] # 
  draw_string("Mona BRORSSON     | 320",80,126,[0,0,0],[245,245,245])
  
  draw_string("29-",0,158,[0,0,0],[245,245,245])
  norway(30,153) # [+5] #
  draw_string("Ida LIEN          | 276",80,158,[0,0,0],[245,245,245])
  
  draw_string("30-",0,190,[0,0,0],[245,245,245])
  belarus(30,185) # [+4] #
  draw_string("Elena KRUCHINKINA | 275",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_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.