__link__ | Ouija.cpp

It also printed "The answer is 42" when I asked for the meaning of life, which tells me one of two things: either I have successfully created an AI with a sense of humor, or I have a very boring ghost who likes Douglas Adams.

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."

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). ouija.cpp

Cursor drifting... [ > Y ] [ o ] [ u ] [ r ] [ > S ] [ h ] [ a ] [ d ] [ > o ] [ w ].

User pressed SPACE. Constructing: "YOUR SHADOW." It also printed "The answer is 42" when

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.

/* * WARNING: This software is for entertainment purposes only. * The author is not responsible for: * - Unexplained RAM usage * - Noises coming from your speakers at 3:00 AM * - Your roommate finding you whispering "std::vector" in your sleep * - Actual demonic possession (If you debug using printf, you're already possessed) */ You need g++ , ncurses (for the drifting cursor effect), and a strong constitution. A Ouija board is, traditionally, a flat board

-- [Your Name] Senior Exorcist / C++ Developer

Previous
Previous

Moody Orange and Teal - Film Simulation for the Sigma FP and FP L

Next
Next

Luke’s Kodak Ektachrome 1600 - Film Simulation for Ricoh GR III and GR IIIx