The Word Game, C++ edition!

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
BlitzCoder
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 12
Joined: Fri Jul 30, 2010 10:20 pm
Favorite Gaming Platforms: PC/Xbox 360
Programming Language of Choice: C++
Location: Maine, USA
Contact:

The Word Game, C++ edition!

Post 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;
}
If at first you don't succeed, Skydiving may not be the thing for you...
User avatar
zeid
Chaos Rift Junior
Chaos Rift Junior
Posts: 201
Joined: Fri Apr 24, 2009 11:58 pm

Re: The Word Game, C++ edition!

Post by zeid »

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    return 0;
}
Axolotl Pop!
Image
Or, try it for free.

For many more free games online visit www.sam-zeid.com
User avatar
xiphirx
Chaos Rift Junior
Chaos Rift Junior
Posts: 324
Joined: Mon Mar 22, 2010 3:15 pm
Current Project: ******** (Unkown for the time being)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:

Re: The Word Game, C++ edition!

Post by xiphirx »

Code: Select all

#include <iostream>
int main()
{
    bool exit=false;
    while (exit == false)
    {
    }
    return 0;
}
StarCraft II Zerg Strategy, open to all levels of players!

Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of :)
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: The Word Game, C++ edition!

Post 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;
}
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
A Person
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 10
Joined: Mon Jul 12, 2010 3:12 am
Current Project: iPhone 2D Game
Favorite Gaming Platforms: Wii, NDS, iPhone, 360
Programming Language of Choice: Objective-C
Location: Calgary, AB

Re: The Word Game, C++ edition!

Post 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;
}
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: The Word Game, C++ edition!

Post 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;
}
A Person
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 10
Joined: Mon Jul 12, 2010 3:12 am
Current Project: iPhone 2D Game
Favorite Gaming Platforms: Wii, NDS, iPhone, 360
Programming Language of Choice: Objective-C
Location: Calgary, AB

Re: The Word Game, C++ edition!

Post 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;
}
User avatar
JaxDragon
Chaos Rift Junior
Chaos Rift Junior
Posts: 395
Joined: Mon Aug 04, 2008 2:03 pm
Current Project: Kanoba Engine
Favorite Gaming Platforms: PS3, PC
Programming Language of Choice: C++
Location: Northeast NC

Re: The Word Game, C++ edition!

Post 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;
}
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: The Word Game, C++ edition!

Post 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;
}
Image
User avatar
JaxDragon
Chaos Rift Junior
Chaos Rift Junior
Posts: 395
Joined: Mon Aug 04, 2008 2:03 pm
Current Project: Kanoba Engine
Favorite Gaming Platforms: PS3, PC
Programming Language of Choice: C++
Location: Northeast NC

Re: The Word Game, C++ edition!

Post 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;
}
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: The Word Game, C++ edition!

Post 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;
}
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: The Word Game, C++ edition!

Post 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;
}
Image
A Person
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 10
Joined: Mon Jul 12, 2010 3:12 am
Current Project: iPhone 2D Game
Favorite Gaming Platforms: Wii, NDS, iPhone, 360
Programming Language of Choice: Objective-C
Location: Calgary, AB

Re: The Word Game, C++ edition!

Post 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;
}
User avatar
xiphirx
Chaos Rift Junior
Chaos Rift Junior
Posts: 324
Joined: Mon Mar 22, 2010 3:15 pm
Current Project: ******** (Unkown for the time being)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:

Re: The Word Game, C++ edition!

Post 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;
}
StarCraft II Zerg Strategy, open to all levels of players!

Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of :)
User avatar
ultimatedragoon69
Chaos Rift Regular
Chaos Rift Regular
Posts: 122
Joined: Tue Oct 28, 2008 1:57 pm
Current Project: Pangea's quest (text ~tile~ based rpg)
Favorite Gaming Platforms: Dreamcast, PC, playstation 1, Virtual Boy, Snes
Programming Language of Choice: c++
Contact:

Re: The Word Game, C++ edition!

Post 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;
}
Post Reply