classement_ibu_h_cdm_2021.py

Created by kml-style

Created on January 17, 2022

7.45 KB

Classement masculin de la coupe du monde de biathlon 2020-2021.


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 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 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 slovenia(x,y):
  fill_rect(x,y,45,10,[255,255,255])
  fill_rect(x,y+10,45,10,[0,0,185])
  fill_rect(x,y+20,45,10,[255,0,0])
  a=5
  for i in range(7):
    fill_rect(x+a,y+3,14-(2*i),10,[0,0,185])
    a+=1
  fill_rect(x+8,y+6,8,1,[255,255,255])
  fill_rect(x+9,y+7,6,1,[255,255,255])
  fill_rect(x+10,y+8,4,1,[255,255,255])
  fill_rect(x+11,y+9,2,1,[255,255,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 latvia(x,y):
#  fill_rect(x,y,45,12,[155,0,0])
#  fill_rect(x,y+12,45,6,[255,255,255])
#  fill_rect(x,y+18,45,12,[155,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 belarus(x,y):
  fill_rect(x,y,45,15,[0,185,0])
  fill_rect(x,y+15,45,15,[255,0,0])
  
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])
  norway(20,30) # [-] #
  draw_string("Johannes BOE      | 1052",70,35,[255,185,0],[245,245,245])
  draw_string("+",190,35,[255,0,0],[245,245,245])

  draw_string("2-",0,67,[0,0,255],[245,245,245])
  norway(20,62) # [-] #
  draw_string("Sturla LAEGREID   | 1039",70,67,[0,0,255],[245,245,245])
  draw_string("++",220,67,[255,0,0],[245,245,245])

  draw_string("3-",0,99,[0,0,0],[245,245,245])
  france(20,94) # [+1] #
  draw_string("Quentin F-MAILLET | 930",70,99,[0,0,0],[245,245,245])

  draw_string("4-",0,131,[255,0,0],[245,245,245])
  norway(20,126) # [+1] #
  draw_string("Tarjei BOE        | 893",70,131,[255,0,0],[245,245,245])

  draw_string("5-",0,163,[0,0,0],[245,245,245])
  norway(20,158) # [-2] #
  draw_string("Johannes DALE     | 843",70,163,[0,0,0],[245,245,245])

  draw_string("6-",0,195,[0,0,0],[245,245,245])
  sweden(20,190) # [+1] #
  draw_string("S. SAMUELSSON     | 817",70,195,[0,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("Emilien JACQUELIN| 812",80,30,[0,0,0],[245,245,245])
    
  draw_string("8-",5,62,[0,0,0],[245,245,245])
  italia(30,57) # [+2] #
  draw_string("Lukas HOFER      | 753",80,62,[0,0,0],[245,245,245])
  
  draw_string("9-",5,94,[0,0,0],[245,245,245])
  france(30,89) # [+3] #
  draw_string("Simon DESTHIEUX  | 724",80,94,[0,0,0],[245,245,245])
  
  draw_string("10-",0,126,[0,0,0],[245,245,245])
  sweden(30,121) # [-2] #
  draw_string("Martin PONSILUOMA| 713",80,126,[0,0,0],[245,245,245])

  draw_string("11-",0,158,[0,0,0],[245,245,245])
  slovenia(30,153) # [-1] #
  draw_string("Jakov FAK        | 693",80,158,[0,0,0],[245,245,245])

  draw_string("12-",0,190,[0,0,0],[245,245,245])
  germany(30,185) # [-3] #
  draw_string("Arnd PFEIFFER    | 642",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) # [+3] #
  draw_string("V. CHRISTIANSEN  | 621",80,30,[0,0,0],[245,245,245])    
  
  draw_string("14-",0,62,[0,0,0],[245,245,245])
  germany(30,57) # [-1] #
  draw_string("Benedikt DOLL    | 607",80,62,[0,0,0],[245,245,245])

  draw_string("15-",0,94,[0,0,0],[245,245,245])
  austria(30,89) # [-1] #
  draw_string("Simon EDER       | 606",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("Erik LESSER      | 543",80,126,[0,0,0],[245,245,245])
  
  draw_string("17-",0,158,[0,0,0],[245,245,245])
  russia(30,153) # [-2] #
  draw_string("Alexander LOGINOV| 541",80,158,[0,0,0],[245,245,245])
  
  draw_string("18-",0,190,[0,0,0],[245,245,245])
  russia(30,185) # [+4] #
  draw_string("Eduard LATYPOV   | 491",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])
  france(30,25) # [-1] #
  draw_string("Fabien CLAUDE    | 477",80,30,[0,0,0],[245,245,245])
  
  draw_string("20-",0,62,[0,0,0],[245,245,245])
  france(30,57) # [-] #
  draw_string("Antonin GUIGONNAT| 473",80,62,[0,0,0],[245,245,245])
  
  draw_string("21-",0,94,[0,0,0],[245,245,245])
  russia(30,89) # [-] #
  draw_string("Matvey ELISEEV   | 459",80,94,[0,0,0],[245,245,245])
  
  draw_string("22-",0,126,[0,0,0],[245,245,245])
  switzerland(30,121) # [-3] #
  draw_string("Benjamin WEGER   | 449",80,126,[0,0,0],[245,245,245])
  
  draw_string("23-",0,158,[0,0,0],[245,245,245])
  #cz(30,153) # [-] #
  draw_string("Mickel KRCMAR    | 381",80,158,[0,0,0],[245,245,245])
  
  draw_string("24-",0,190,[0,0,0],[245,245,245])  
  austria(30,185) # [+1] #
  draw_string("Felix LEITNER    | 310",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])  
  ukraine(30,25) # [+1] #
  draw_string("Dmytro PIDRUCHNYI| 294",80,30,[0,0,0],[245,245,245])  

  draw_string("26-",0,62,[0,0,0],[245,245,245])
  belarus(30,57) # [+5] #
  draw_string("Anton SMOLSKI    | 264",80,62,[0,0,0],[245,245,245])
  
  draw_string("27-",0,94,[0,0,0],[245,245,245])
  russia(30,89) # [ Entrée ] #
  draw_string("Evgeni GARANICHEV| 260",80,94,[0,0,0],[245,245,245])
  
  draw_string("28-",0,126,[0,0,0],[245,245,245])
  germany(30,121) # [ Entrée ] #
  draw_string("Roman REES       | 257",80,126,[0,0,0],[245,245,245])
  
  draw_string("29-",0,158,[0,0,0],[245,245,245])  
  sweden(30,153) # [-1] #
  draw_string("Jesper NELIN     | 257",80,158,[0,0,0],[245,245,245])  

  draw_string("30-",0,190,[0,0,0],[245,245,245])
  #latvia(30,185) # [-5] #
  draw_string("A. RASTORGUJEVS  | 255",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.