Page 1 of 2

The Word Game, C++ edition!

Posted: Fri Jul 30, 2010 11:40 pm
by BlitzCoder
It seems this forum does not have a forum for "Fun with coding", so if this should be moved, please do so...

Anyways:

I have done this on a few other coding boards to mixed results, thought maybe it would be fun to try here. Here's how it works, every poster adds one line of code OR deletes one line of code. It has to make sense, but it does not have to compile until the thread is done (whenever we get bored). I'll start us off with a bit. You can also add onto an existing line. Please state what you are changing when you post :)

An example of an old game of this: http://www.cplusplus.com/forum/lounge/12972/

Rules/Guidelines:
  • Try to keep the code on a beginner-intermediate level. It would be nice to have (almost) everybody be able to contribute.

    Please do NOT write a whole program in one line (I had that pulled on another forum -.-), Each line is meant to do one thing. This is meant to be a group effort.

    Do not post until somebody else has posted (No double posting/edits)

    If this gets far enough that it needs multiple files, and we still want to continue, you may post a file template for it with stated intent (IE, a .h with just basic formatting and a note saying how you would like it to go)

Code: Select all

#include <iostream>
int main()
{
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sat Jul 31, 2010 1:13 am
by zeid

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sat Jul 31, 2010 1:27 am
by xiphirx

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    while (exit == false)
    {
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sat Jul 31, 2010 12:26 pm
by dandymcgee

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sat Jul 31, 2010 1:17 pm
by A Person

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";
        int i = 100;
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sat Jul 31, 2010 1:32 pm
by GroundUpEngine

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";
        int i = 100;

        std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl;
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sat Jul 31, 2010 7:14 pm
by A Person

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";
        int i = 100;

        std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl;
       if(i <= 0) {
          exit = true;
       }
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sat Jul 31, 2010 7:49 pm
by JaxDragon

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";
        int i = 100;

        std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl;
        char answer;

        if(i <= 0) {
          exit = true;
       }
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sat Jul 31, 2010 9:03 pm
by eatcomics

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";
        int i = 100;

        std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl;
        char answer;

        if(i <= 0) {
          exit = true;
       }
      
       i-=1;
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sat Jul 31, 2010 10:38 pm
by JaxDragon

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";
        int i = 100;

        std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl;
        char answer;
        std::cin >> answer;

        if(i <= 0) {
          exit = true;
       }
      
       i-=1;
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sun Aug 01, 2010 11:22 am
by dandymcgee

Code: Select all

#include <iostream>
#include <ctype.h> //tolower() anyone? ;)
int main()
{
    bool exit=false;
    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";
        int i = 100;

        std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl;
        char answer;
        std::cin >> answer;

        if(i <= 0) {
          exit = true;
		}
      
       i-=1;
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sun Aug 01, 2010 2:47 pm
by eatcomics

Code: Select all

#include <iostream>
#include <ctype.h> //tolower() anyone? ;) lol hellz yeah
int main()
{
    bool exit=false;
    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";
        int i = 100;

        std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl;
        char answer;
        std::cin >> answer;

        if(i <= 0) {
          exit = true;
		}
      
       i-=1;
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sun Aug 01, 2010 5:57 pm
by A Person
#include <iostream>
#include <ctype.h> //tolower() anyone? ;) lol hellz yeah
int main()
{
bool exit=false;
int i = 100;

while (exit == false)
{
std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";

std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl;
char answer;
std::cin >> answer;

if(i <= 0) {
exit = true;
}

i-=1;
}
return 0;
}

Re: The Word Game, C++ edition!

Posted: Sun Aug 01, 2010 8:18 pm
by xiphirx

Code: Select all

#include <iostream>
#include <ctype.h> //tolower() anyone? ;) lol hellz yeah
int main()
{
    bool exit=false;
    int i = 100;

    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";

        std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl;
        char answer;
        std::cin >> answer;

       if (answer == 'n' || answer == 'N' || answer != 'y' || answer != 'Y')
       {
       }

        if(i <= 0) {
          exit = true;
      }
      
       i-=1;
    }
    return 0;
}

Re: The Word Game, C++ edition!

Posted: Sun Aug 01, 2010 10:14 pm
by ultimatedragoon69

Code: Select all

#include <iostream>
#include <ctype.h> //tolower() anyone? ;) lol hellz yeah
int main()
{
    bool exit=false;
    int i = 100;

    while (exit == false)
    {
        std::cout << "Welcome to the Elysian Shadows Word Game!\n\n";

        std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl;
        char answer;
        std::cin >> answer;

       if (answer == 'n' || answer == 'N' || answer != 'y' || answer != 'Y')
       {
       }
       else
       {
       }

        if(i <= 0) {
          exit = true;
      }
      
       i-=1;
    }
    return 0;
}