Roulette
from math import * from kandinsky import * from random import * from ion import * from time import * while 1: def rou(): a=0 c=0 d=0 e=0 f=0 for k in range(randint(20,70)): n=randint(1,4) if keydown(KEY_MINUS): e=1 if keydown(KEY_EXE): c=1 if keydown(KEY_ANS): d=1 if n==9: f=1 if n==1: fill_rect(0,0,320,222,color(255,0,0)) a=0 sleep(0.05) if n==2: fill_rect(0,0,320,222,color(0,0,255)) a=1 sleep(0.05) if n==3: fill_rect(0,0,320,222,color(255,255,0)) a=2 sleep(0.05) if n==4: fill_rect(0,0,320,222,color(255,0,255)) a=3 sleep(0.05) if e==1: fill_rect(0,0,320,222,color(0,255,0)) draw_string("error",0,0) print('error') sleep(1) elif d==1: if b==0: fill_rect(0,0,320,222,color(255,0,0)) draw_string('Tu a gagner',0,0) sleep(1)