Skip to content

About

Twelve riddles written in Brainfuck: run the code, read the riddle, answer it. Play in the browser or in a terminal with Python.

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation



Cursed Riddles

Twelve riddles written in Brainfuck. Each riddle is a Brainfuck program: run it to read the riddle, then answer it. The answers are stored only as salted SHA-256 hashes, so reading the files does not give them away.

Play in the browser: cursedprograms.github.io/Cursed-Riddles (watch the program run on the tape, answer, take hints, and write your own Brainfuck in the playground).

Play in a terminal

Python 3, nothing else to install:

python main.py                       # play the riddles in order (hint, skip, quit)
python main.py run riddles/riddle_00.bf
python main.py encode "your text"    # print a Brainfuck program that prints your text
python main.py encrypt riddle.bf riddle.key riddle.enc
python main.py decrypt riddle.enc riddle.key riddle.bf

Windows: setup.bat or setup.ps1. Linux and macOS: ./setup.sh. Encrypt and decrypt use Fernet and need pip install cryptography.

Files

  • riddles/riddle_00.bf ... riddle_11.bf - the riddles
  • riddles/riddles.json - answer hashes, hints and reveals (also in Brainfuck)
  • main.py - interpreter, encoder and the terminal game
  • index.html, site/style.css, site/site.js - the website
  • tests/ - pytest checks that every riddle runs

© Cursed Entertainment

About

Twelve riddles written in Brainfuck: run the code, read the riddle, answer it. Play in the browser or in a terminal with Python.

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages