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

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 <a href="https://www.numworks.com/legal/cookies-policy/">cookies policy</a>.