Source Code: The Dumbest Game

A really dumb text game written in C++.

#include <iostream>
 
using namespace std;
 
int main()
{
    bool game_over = false;
    string action;
 
    cout << endl;
    cout << " This is the dumbest game ever written. We at the C++" << endl;
    cout << " wiki assure you with utmost confidence that no game" << endl;
    cout << " is as mindboggling stupid, nor can compare with it's" << endl;
    cout << " sheer idoicy." << endl << endl;
 
    cout << " With that said let us begin the game :" << endl << endl;
 
    cout << " You find yourself in a somewhat enchanted forest next" << endl;
    cout << " to a drunken leprechaun named 'Evile'." << endl << endl;
 
    cout << " You have a stick." << endl;
 
    do
    {
        cout << endl << endl;
        cout << " What do you do?" << endl << endl;
        cout << "   1. Poke Evile with the stick. " << endl;
        cout << "   2. Go home." << endl << "  > ";
        cin >> action;
        cout << endl << endl;
        if ( action == "1" )
        {
            cout << " Evile says : 'Owch! Ye freekin tard.'" << endl;
        }
        if ( action == "2" )
        {
            cout << " Evile gladly watches you walk away." << endl << endl;
            cout << "   Press any key to end the game." << endl << endl;
            game_over = true;
        }
 
    }
    while (!game_over);
}
Categories: Source Code
page_revision: 2, last_edited: 1245596369|%e %b %Y, %H:%M %Z (%O ago)