matrix.py

Created by kbdechez-lidl

Created on January 27, 2023

516 Bytes


from kandinsky import *
from random import *
from ion import *
from time import *
nb=100

def jeu(nb):
  boucle=0
  fill_rect(0,0,350,300,color(0,0,0))
  while boucle!=nb:
    x = randint(-10,350)
    y = randint(-10,250)
    draw_string("0",x,y)
    boucle=boucle+1
  x = randint(-10,350)
  y = randint(-10,250)
  draw_string("8",x,y)
  while True:
    if keydown(KEY_OK)==True:
      fill_rect(0,0,350,350,color(0,0,0))
      sleep(0.1)
      return None
    
while True:
  print(jeu(nb))
  nb=nb+100