Advertisement
zeromega64twenty

Gossip Greg Number 26

Nov 2nd, 2023
97
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | Source Code | 0 0
  1. import time
  2. import random as r
  3.  
  4. def print_number(n, c, x, y):
  5.     print(f"\033[{c};{y};{x}H{n}", end='', flush=True)
  6.     time.sleep(0.01)
  7.  
  8. colors = {"31": "31", "32": "32", "33": "33", "34": "34", "35": "35", "36": "36"}
  9. print("\033[2J")
  10.  
  11. while True:
  12.     for _ in range(6):
  13.         x, y = r.randint(1, 80), r.randint(1, 200)
  14.         selected_color = r.choice(list(colors.keys()))
  15.         print_number(26, selected_color, x, y)
  16.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement