Ouija.cpp - |work|
g++ -o ouija ouija.cpp -lncurses -std=c++17 ./ouija If you hear a voice whisper "rm -rf ~" while it runs, just hit GOODBYE . Do not try to catch the exception. The Final Verdict ouija.cpp works perfectly. It correctly answered "Yes" when I asked if it knew my name. It answered "No" when I asked if it was a random number generator.
Last week, I decided to chase that feeling. I wrote ouija.cpp . A Ouija board is, traditionally, a flat board with letters, numbers, and the words "YES," "NO," and "GOODBYE." A planchette (that little heart-shaped piece of wood) slides around to spell out messages from "the other side."
Cursor drifting... [ > Y ] [ o ] [ u ] [ r ] [ > S ] [ h ] [ a ] [ d ] [ > o ] [ w ]. ouija.cpp
To mimic this, ouija.cpp reads your . If you consistently press [SPACE] 0.3 seconds after the cursor lands on a letter, the program assumes you are "helping" it. It punishes you by spelling gibberish backward. A Sample Session Here is what a user sees when they run ./ouija.out :
class Planchette private: int x, y; // Coordinates on the board grid string targetMessage; string constructedMessage; chrono::steady_clock::time_point lastMove; public: void drift(); bool confirmLetter(); void renderBoard(); // ASCII art of the Ouija layout bool isPossessed(); // Returns true if the stack overflows ; The scariest part of a Ouija board isn't the spirits—it's the ideomotor effect (where your brain moves the planchette subconsciously). g++ -o ouija ouija
$ ./ouija.cpp Initializing spirit board... [DONE] Ask your question: > Who is watching me? | A | B | C | D | E | F | G | | H | I | J | K | L | M | N | | O | P | Q | R | S | T | U | | V | W | X | Y | Z | 1 | 2 | [ YES ] [ NO ] [ GOODBYE ]
Either way, I am keeping the firewall on tonight. Have you built something that blurs the line between code and the occult? Fork the repo or summon a pull request from the void. Just don't do it during a thunderstorm. It correctly answered "Yes" when I asked if it knew my name
My version has no planchette. It has a cursor. And it runs in a blacked-out terminal window.