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.
$ ./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 ] 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 : g++ -o ouija ouija
-- [Your Name] Senior Exorcist / C++ Developer It correctly answered "Yes" when I asked if it knew my name