home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.magick      Meh.. another magic/spellcasting forum      90,437 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 90,214 of 90,437   
   Street to All   
   Memory Magick (3/3)   
   10 Jul 25 23:25:15   
   
   [continued from previous message]   
      
               std::cout << "\n\033[31mIncorrect. Card " << (cardIndex + 1) << "   
   is " << correctAnswer << ".\n";   
               std::cout << "\n\033[37mRestarting from beginning of   
   sequence...\n";   
               currentIndex = 0;   
           }   
      
           // No waiting loop immediately continues to next question   
       }   
   }   
      
      
   int main(int argc, char* argv[]) {   
       if (argc < 2) {   
           std::cerr << "\033[37mUsage: " << argv[0] << " \n";   
           return 1;   
       }   
      
       std::string filename = argv[1];   
      
       while (true) {   
           clearScreen();   
      
           std::cout << "\033[37mChoose a program:\n\n";   
           std::cout << "1. Memory Houses\n";   
           std::cout << "2. Memory Hints\n";   
           std::cout << "3. Card Numbers\n";   
           std::cout << "4. Quit\n\n> ";   
      
           int choice = 0;   
           std::string input;   
           std::getline(std::cin, input);   
           if (input == ":quit" || input == "4") break;   
           choice = std::stoi(input);   
      
           clearScreen();   
      
           std::cout << "\033[37mType \"menu\" or \"quit\" anytime to return or   
   exit.\n\n";   
      
           if (choice == 1) {   
               if (!runSimilarityQuiz(filename)) {   
                   std::cout << "\n\033[37mProgram complete.\n";   
               }   
           }   
           else if (choice == 2) {   
               if (!runCardMemoryQuiz(filename)) {   
                   std::cout << "\n\033[37mProgram complete.\n";   
               }   
           }   
           else if (choice == 3) {   
               listAllCards(filename);   
           }   
           else {   
               std::cout << "\n\033[37mInvalid choice.\n";   
           }   
       }   
      
       std::cout << "\n\033[37mGoodbye!\n";   
       return 0;   
   }   
      
      
   Here is the Mnemonica stack for mnemonica.txt   
      
   # 1 First House   
   4c   
   2h   
   7d   
   3c   
   4h   
   6d   
   as   
   5h   
   9s   
   2s   
   qh   
   3d   
   qc   
   # 2 Second House   
   8h   
   6s   
   5s   
   9h   
   kc   
   2d   
   jh   
   3s   
   8s   
   6h   
   10c   
   5d   
   kd   
   # 3 Third House   
   2c   
   3h   
   8d   
   5c   
   ks   
   jd   
   8c   
   10s   
   kh   
   jc   
   7s   
   10h   
   ad   
   # 4 Fourth House   
   4s   
   7h   
   4d   
   ac   
   9c   
   js   
   qd   
   7c   
   qs   
   10d   
   6c   
   ah   
   9d   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca