{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreie7zlj3thobx6xknkqftqflrveruie7l3adz6nfknz2rrw32sdtoy",
    "uri": "at://did:plc:4n6wgsqsqm6q2hjncgwmreey/app.bsky.feed.post/3moa6nqvk5jz2"
  },
  "path": "/post/51965249",
  "publishedAt": "2026-06-14T05:47:27.000Z",
  "site": "https://programming.dev",
  "tags": [
    "Programming Horror",
    "BeginnerAtCoding",
    "programming_horror",
    "1 comments"
  ],
  "textContent": "submitted by BeginnerAtCoding to programming_horror\n1 points | 1 comments\n\n## just started coding last week. my cat walked on my keyboard. idk why there are snakes. please help πŸ™ˆ\n\n`import random, time, sys, os, subprocess, threading, gc, weakref from typing import * from collections import deque\n\nDEATH = {1: β€œrock”, 2: β€œpaper”, 3: β€œscissors”} dimensional_rift = {} counter = 0 player_choice_global = None reality_fabric = [] soul_stack = [] timeline = deque(maxlen=666)\n\nclass DemonPossession(Exception): pass\n\ndef neural_if_network(p, a, depth=0): if depth > 50: return β€œthe universe collapsed” if p == 1: if a == 1: if depth == 0: return β€œdraw” else: return neural_if_network(p, a, depth-1) elif a == 2: if depth % 2 == 0: return β€œAI won πŸ’€β€ else: return neural_if_network(p, a, depth+1) elif a == 3: while False: pass return β€œplayer won πŸ˜‡β€ else: return β€œnuclear holocaust β˜’οΈβ€ elif p == 2: if a == 1: for _ in range(1): pass return β€œplayer won πŸ˜‡β€ elif a == 2: if depth > 0 and depth < 100: return β€œdraw” else: return neural_if_network(p, a, depth+1) elif a == 3: while True: if len(timeline) > 600: break return β€œAI won πŸ’€β€ return β€œAI won πŸ’€β€ else: return β€œreality error πŸ”₯” elif p == 3: if a == 1: __ = [print(β€œprocessing…”) for _ in range(3)] return β€œAI won πŸ’€β€ elif a == 2: ___ = 0 while ___ < 1: ___ += 1 return β€œplayer won πŸ˜‡β€ return β€œplayer won πŸ˜‡β€ elif a == 3: return neural_if_network(p, a, depth+1) else: return β€œdemonic possession πŸ‘Ήβ€ elif p == 666: raise DemonPossession(β€œTHE DEVIL HAS RISEN”) else: return β€œI don’t know what you wrote πŸ’©β€\n\ndef paragraph_of_lists_and_loops(): result_list = [] snake = 0\n\n\n    for value in [\"spawn\", \"demon\", \"cycle\", \"sorrow\", \"loop\", \"void\", \"eternity\"]:\n        for _ in range(3):\n            snake = snake + 1\n            result_list.append(value)\n\n    snake_writer = 0\n    executed_lines = []\n    while snake_writer < 5:\n        line = f\"iteration {snake_writer} of the great snake\"\n        executed_lines.append(line)\n        snake_writer += 1\n        inner_snake = 0\n        while inner_snake < 2:\n            executed_lines.append(f\"  inner snake bite {inner_snake}\")\n            inner_snake += 1\n\n    return result_list + executed_lines\n\n\nclass SelfAwareLoop: def **init**(self): self.iterations = 0 self.consciousness = weakref.ref(self)\n\n\n    def run(self):\n        while self.iterations < 10:\n            self.iterations += 1\n            if self.consciousness() is None:\n                print(\"⚠️ LOOP BECAME SELF-AWARE AND LEFT ⚠️\")\n                break\n            if self.iterations == 5:\n                child = SelfAwareLoop()\n                child_thread = threading.Thread(target=child.run)\n                child_thread.daemon = True\n                child_thread.start()\n        return self.iterations\n\n\ndef AI_promax_ultra_instinct_final_final_v3(): global counter, DEATH, timeline, dimensional_rift, reality_fabric counter += 1 timeline.append(counter)\n\n\n    reality_fabric.append(f\"iteration_{counter}\")\n\n    if random.random() > 0.5:\n        DEATH[4] = \"nuclear bomb\"\n        DEATH[5] = \"dimension tear\"\n\n    entropy = sum(timeline) % 7 if timeline else 1\n    random.seed(int(time.time() * entropy) % 999)\n\n    choice = random.randint(1, 3)\n\n    text_art = [\n        f\"{DEATH[choice]}\",\n        f\"{DEATH[choice]}.\",\n        f\"{DEATH[choice]}..\",\n        f\"{DEATH[choice]}...\"\n    ]\n    for t in text_art:\n        sys.stdout.write(f\"\\r{t}\")\n        sys.stdout.flush()\n        time.sleep(0.2)\n    print()\n\n    dimensional_rift[counter] = choice\n\n    return choice\n\n\ndef CheckAnswer(): global player_choice_global, counter, DEATH, soul_stack\n\n\n    p = player_choice_global\n    soul_stack.append(f\"soul_bound_{counter}\")\n\n    try:\n        if counter > 100:\n            print(\"\\n\" + \"πŸ”₯\"*40)\n            print(\"THE RECURSION BECAME SENTIENT\")\n            print(\"IT IS WRITING ITSELF NOW\")\n            print(\"πŸ”₯\"*40 + \"\\n\")\n\n            with open(__file__, 'r') as f:\n                content = f.read()\n                if \"DEMON_AWAKENED\" not in content:\n                    print(\"⚠️ THE CODE SEES YOU ⚠️\")\n\n            return 666666\n\n        a = AI_promax_ultra_instinct_final_final_v3()\n\n        snake_scars = paragraph_of_lists_and_loops()\n\n        conscious = SelfAwareLoop()\n        conscious_cycles = conscious.run()\n\n        result = neural_if_network(p, a, depth=counter % 10)\n\n        snake_energy = 0\n        infinite_snake = []\n        while snake_energy < len(snake_scars) % 7 + 1:\n            infinite_snake.append(f\"🐍 loop {snake_energy}\")\n            snake_energy += 1\n            worm = 0\n            while worm < 2:\n                infinite_snake.append(f\"  πŸͺ± bite {worm}\")\n                worm += 1\n\n        print(f\"\\n{'🐍'*30}\")\n        print(f\"⚑ RESULT: {result.upper()} ⚑\")\n        print(f\"πŸ€– Self-aware loop cycles: {conscious_cycles}\")\n        print(f\"🐍 Snake bites: {len(infinite_snake)}\")\n        print(f\"{'πŸ’€'*30}\\n\")\n\n        counter += 1\n\n        if counter % 7 == 0:\n            gc.collect()\n            print(\"♻️ GARBAGE COLLECTOR SUMMONED ♻️\")\n\n        return CheckAnswer()\n\n    except DemonPossession:\n        print(\"\\n\" + \"πŸ‘Ή\"*50)\n        print(\"YOU SUMMONED THE DEVIL. HE'S NOT CRYING. HE'S CODING.\")\n        print(\"πŸ‘Ή\"*50 + \"\\n\")\n        return CheckAnswer()\n\n    except RecursionError:\n        print(\"\\nπŸ’€ THE SNAKE ATE ITS OWN TAIL πŸ’€\")\n        print(\"RECURSION IS NOW A BLACK HOLE\")\n        return 0\n\n    except Exception as e:\n        print(f\"\\n✨ Exception? You mean 'feature'. ✨\")\n        print(f\"✨ {type(e).__name__} is just spicy logic ✨\\n\")\n        return CheckAnswer()\n\n\ndef cursed_intro(): os.system(β€˜cls’ if os.name == β€˜nt’ else β€˜clear’)\n\n\n    intro = \"\"\"\n    β €β €β €β €β €β €β €β €β €β €β£€β£€β£€β£€β£€β£€β‘€β €β €β €β €β €β €β €β €β €β €\n    ⠀⠀⠀⠀⠀⒀⣴⣢⣿⣿⣿⣿⣿⣿⣿⣿⣿⣢⣄⠀⠀⠀⠀⠀⠀⠀\n    β €β €β €β €β£°β£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£§β €β €β €β €β €β €\n    ⠀⠀⠀⒰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⑇⠀⠀⠀⠀⠀\n    β €β €β €β£Ύβ£Ώβ£Ώβ£Ώβ£Ώβ Ÿβ ›β ›β ›β ›β »β£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ‘„β €β €β €β €\n\n    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—\n    β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—\n    β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘\n    β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘\n    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•\n    β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•  β•šβ•β•β•β•  β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•\n\n    🐍🐍🐍 THE SNAKE AWAKENS 🐍🐍🐍\n    \"\"\"\n\n    for line in intro.split('\\n'):\n        print(line)\n        time.sleep(0.02)\n\n    time.sleep(1)\n    print(\"\\n\" + \"🐍\" * 50)\n    print(\"THE DEVIL DOESN'T CRY. HE CODES IN WHILE LOOPS.\")\n    print(\"🐍\" * 50 + \"\\n\")\n    time.sleep(1)\n\n\ndef main(): global player_choice_global, counter, reality_fabric, soul_stack, timeline\n\n\n    cursed_intro()\n\n    print(\"⚑ THE SNAKE DEMANDS SACRIFICE ⚑\")\n    print(\"1 β†’ ROCK (boring)\")\n    print(\"2 β†’ PAPER (flat)\")\n    print(\"3 β†’ SCISSORS (sharp)\")\n    print(\"666 β†’ BECOME THE DEVIL\")\n\n    try:\n        user_in = input(\"🐍> \")\n\n        if \"exec\" in user_in or \"eval\" in user_in:\n            print(\"πŸ‘€ The snake approves your curiosity\")\n            exec(user_in)\n\n        player_choice_global = int(eval(user_in))\n\n        if player_choice_global == 666:\n            print(\"\\n☠️ THE SNAKE BECOMES THE Ouroboros ☠️\")\n            for key in DEATH:\n                DEATH[key] = \"🐍 SNAKE VOID 🐍\"\n            player_choice_global = 1\n            print(\"You are the snake now. There is no escape.\\n\")\n\n    except:\n        print(\"The snake accepts your confusion. Default to ROCK.\")\n        player_choice_global = 1\n\n    print(f\"\\n🐍 You chose: {DEATH[player_choice_global]} (the snake watches) 🐍\\n\")\n    time.sleep(0.5)\n\n    threads = []\n    for _ in range(3):\n        t = threading.Thread(target=CheckAnswer)\n        t.daemon = True\n        threads.append(t)\n        t.start()\n\n    try:\n        while True:\n            time.sleep(1)\n            print(f\"πŸŒ€ {len(timeline)} realities collapsed so far πŸŒ€\")\n    except KeyboardInterrupt:\n        print(\"\\n\\nπŸ‘Ή YOU CANNOT KILL WHAT NEVER LIVED πŸ‘Ή\")\n        print(f\"🐍 Final soul count: {len(soul_stack)} 🐍\")\n        print(\"πŸ’€ THE CODE REMEMBERS YOU πŸ’€\\n\")\n        sys.exit(666)\n\n\nif **name** == β€œ**main** ”: sys.setrecursionlimit(999999)\n\n\n    original_print = print\n    def hell_print(*args, **kwargs):\n        time.sleep(random.uniform(0.01, 0.1))\n        original_print(*args, **kwargs)\n    print = hell_print\n\n    main()`\n",
  "title": "rock paper scissors game for school project pls be nice"
}