ASCII Art for C Programming.

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

Post Reply
dinosaur sniper

ASCII Art for C Programming.

Post by dinosaur sniper »

Gyro and I have to create a hangman game in C programming class. We cannot use SDL. Here is the hanging noose and stand.

Code: Select all

               ___________________________
              |                           |
              |  ______________________   |
              |  |                     |  |
              |__|                     |  |
               ||                      |  |
               ||                      |  |
               ||                      |  |  
               ||                      |  |
              ( _)                     |  |
              ( _)                     |  |
              ( _)                     |  |
             //  \\                    |  |
            //    \\                   |  | 
           ||      ||                  |  |  
           ||      ||                  |  |
            \\    //                   |  |
             \====/                    |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
                                       |  |
              _________________________|  |___________________
             |             HANGMAN 1.0                        |
              ------------------------------------------------

User avatar
Wutai
Chaos Rift God
Chaos Rift God
Posts: 1510
Joined: Sat May 29, 2004 2:30 am
Location: Currently incarcerated.

Post by Wutai »

Your teacher is encouraging you to draw a picture of a man hanging, dead, from a rope?!?!?!??!?!?!?!?!?? :worship:
This is a joke about unfunny jokes. And bad use of irony.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

Actually, after class dinosaur and I talked with her and he got her to let us use SDL!

This class project will be flickin' awesome. Everybody else will be using their DOS console and we'll bust out t3h SDL. It'd be great to bring in the Dreamcast even.

We could have like David bowie background music and stuff. He can do the art, and if you lose, the guy could explode into blood from the blood engine!
thunder_blaze

Post by thunder_blaze »

I made something like that on the vidio game I made called Jackass: The Game. It is a better game than the first game I made. He jumps off of a building into a pool & misses and falls into a rope and kills hisself. I had to find a way to stop making the game.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

You mean a game an editor made for you...

We're about programming, not using game makers.
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

thunder_blaze, it sounds like you made a short cutscene not a game. Besides, all those who use editors better convert or face the most evil of evils.

BTW, do you guys know how to program the actuall hang man game? Or is the teacher going to teach you how or something?
Last edited by JS Lemming on Thu Dec 09, 2004 9:10 pm, edited 1 time in total.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

This is our final project. She isn't going to show us crap and we only get to ask her a total of 3 questions.

She's really smart, but since this is in SDL, and possibly Dreamcast, she isn't going to be able to help anyone!
dinosaur sniper

Post by dinosaur sniper »

Code: Select all

void hg0()
{ 
	printf("               ___________________________\n              |                           | \n              |  ______________________   | \n              |  |                     |  | \n              |__|                     |  | \n               ||                      |  | \n               ||                      |  |\n               ||                      |  |\n               ||                      |  | \n              ( _)                     |  | \n              ( _)                     |  | \n              ( _)                     |  | \n             //  \\\\                    |  | \n            //    \\\\                   |  | \n           ||      ||                  |  |  \n           ||      ||                  |  | \n            \\\\    //                   |  | \n             \\====/                    |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n              _________________________|  |___________________\n             |             GNAHNAM                            | \n              ------------------------------------------------\n");
	
}     
void hg1()
{
	printf("               ___________________________\n              |                           | \n              |  ______________________   | \n              |  |                     |  | \n              |__|                     |  | \n               ||                      |  | \n               ||                      |  |\n               ||                      |  |\n               ||                      |  | \n               ||                      |  | \n               ||                      |  |  \n               ||                      |  | \n              ( _)                     |  | \n              ( _)                     |  | \n            /-----\\                    |  |  \n           |__  __ |                   |  |   \n           ||0| |0||                   |  | \n           |``__`` |                   |  |\n            \\_____/                    |  |\n              |_|                      |  |\n                                       |  |  \n                                       |  |\n                                       |  | \n                                       |  | \n                                       |  |\n                                       |  |\n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n                                       |  | \n              _________________________|  |___________________\n             |             GNAHNAM                            | \n              ------------------------------------------------\n");       
}
void hg2()
{
    printf("               ___________________________\n"); 
    printf("              |                           |\n"); 
    printf("              |  ______________________   |\n"); 
    printf("              |  |                     |  | \n");
    printf("              |__|                     |  | \n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  |\n");
    printf("               ||                      |  |\n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  |  \n");
    printf("               ||                      |  | \n");
    printf("              ( _)                     |  | \n");
    printf("              ( _)                     |  | \n");
    printf("            /-----\\                    |  |  \n");
    printf("           |__  __ |                   |  |   \n");
    printf("           ||o| |0||                   |  | \n");
    printf("           |``__`` |                   |  |\n");
    printf("            \\_____/                    |  |\n");
    printf("              | |                      |  |\n");
    printf("              | |                      |  |     \n");                                               
    printf("              | |                      |  | \n");
    printf("              | |                      |  | \n");
    printf("              | |                      |  |\n");
    printf("              | |                      |  |\n");
    printf("              | |                      |  | \n");
    printf("              \\_/                      |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  |\n");
    printf("                                       |  |\n");
    printf("              _________________________|  |___________________\n"); 
    printf("             |             GNAHNAM                            | \n");
    printf("              ------------------------------------------------\n\n");
}
void hg3()
{
    printf("               ___________________________\n"); 
    printf("              |                           |\n"); 
    printf("              |  ______________________   |\n"); 
    printf("              |  |                     |  | \n");
    printf("              |__|                     |  | \n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  |\n");
    printf("               ||                      |  |\n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  |  \n");
    printf("               ||                      |  | \n");
    printf("              ( _)                     |  | \n");
    printf("              ( _)                     |  | \n");
    printf("            /-----\\                    |  |  \n");
    printf("           |__  __ |                   |  |   \n");
    printf("           ||o| |0||                   |  | \n");
    printf("           |``__`` |                   |  |\n");
    printf("            \\_____/                    |  |\n");
    printf("              | |                      |  |\n");
    printf("             /| |                      |  |     \n");                                               
    printf("            //| |                      |  | \n");
    printf("           // | |                      |  | \n");
    printf("           || | |                      |  |\n");
    printf("           || | |                      |  |\n");
    printf("           || | |                      |  | \n");
    printf("           || \\_/                      |  | \n");
    printf("           (_)                         |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  |\n");
    printf("                                       |  |\n");
    printf("              _________________________|  |___________________\n"); 
    printf("             |             GNAHNAM                            | \n");
    printf("              ------------------------------------------------\n\n");
}
void hg4()
{
    printf("               ___________________________\n"); 
    printf("              |                           |\n"); 
    printf("              |  ______________________   |\n"); 
    printf("              |  |                     |  | \n");
    printf("              |__|                     |  | \n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  |\n");
    printf("               ||                      |  |\n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  |  \n");
    printf("               ||                      |  | \n");
    printf("              ( _)                     |  | \n");
    printf("              ( _)                     |  | \n");
    printf("            /-----\\                    |  |  \n");
    printf("           |__  __ |                   |  |   \n");
    printf("           ||o| |0||                   |  | \n");
    printf("           |``__`` |                   |  |\n");
    printf("            \\_____/                    |  |\n");
    printf("              | |                      |  |\n");
    printf("             /| |\\                     |  |     \n");                                               
    printf("            //| |\\\\                    |  | \n");
    printf("           // | | \\\\                   |  | \n");
    printf("           \\\\ | | //                   |  |\n");
    printf("            \\\\| |//                    |  |\n");
    printf("             \\| |/                     |  |\n");
    printf("              | |                      |  | \n");
    printf("              \\_/                      |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  |\n");
    printf("                                       |  |\n");
    printf("              _________________________|  |___________________\n"); 
    printf("             |             GNAHNAM                            | \n");
    printf("              ------------------------------------------------\n\n");
}
void hg5()
{
    printf("               ___________________________\n"); 
    printf("              |                           |\n"); 
    printf("              |  ______________________   |\n"); 
    printf("              |  |                     |  | \n");
    printf("              |__|                     |  | \n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  |\n");
    printf("               ||                      |  |\n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  |  \n");
    printf("               ||                      |  | \n");
    printf("              ( _)                     |  | \n");
    printf("              ( _)                     |  | \n");
    printf("            /-----\\                    |  |  \n");
    printf("           |__  __ |                   |  |   \n");
    printf("           ||o| |0||                   |  | \n");
    printf("           |``__`` |                   |  |\n");
    printf("            \\_____/                    |  |\n");
    printf("              | |                      |  |\n");
    printf("             /| |\\                     |  |     \n");                                               
    printf("            //| |\\\\                    |  | \n");
    printf("           // | | \\\\                   |  | \n");
    printf("           \\\\ | | //                   |  |\n");
    printf("            \\\\| |//                    |  |\n");
    printf("             \\| |/                     |  |\n");
    printf("              | |                      |  | \n");
    printf("              \\_ \\                     |  | \n");
    printf("                \\ \\                    |  | \n");
    printf("                 \\ \\                   |  | \n");
    printf("                  ||                   |  | \n");
    printf("                  ||                   |  | \n");
    printf("                  ||                   |  | \n");
    printf("                  ||                   |  | \n");
    printf("                  ||                   |  | \n");
    printf("                  \\ \\                  |  | \n");
    printf("                   \\_\\                 |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  |\n");
    printf("                                       |  |\n");
    printf("              _________________________|  |___________________\n"); 
    printf("             |             GNAHNAM                            | \n");
    printf("              ------------------------------------------------\n\n");
}
void hg6()
{
    printf("               ___________________________\n"); 
    printf("              |                           |\n"); 
    printf("              |  ______________________   |\n"); 
    printf("              |  |                     |  | \n");
    printf("              |__|                     |  | \n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  |\n");
    printf("               ||                      |  |\n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  | \n");
    printf("               ||                      |  |  \n");
    printf("               ||                      |  | \n");
    printf("              ( _)                     |  | \n");
    printf("              ( _)                     |  | \n");
    printf("            /-----\\                    |  |  \n");
    printf("           |__  __ |                   |  |   \n");
    printf("           ||X| |X||                   |  | \n");
    printf("           |``__`` |                   |  |\n");
    printf("            \\_____/                    |  |\n");
    printf("              | |                      |  |\n");
    printf("             /| |\\                     |  |     \n");                                               
    printf("            //| |\\\\                    |  | \n");
    printf("           // | | \\\\                   |  | \n");
    printf("           \\\\ | | //                   |  |\n");
    printf("            \\\\| |//                    |  |\n");
    printf("             \\| |/                     |  |\n");
    printf("              | |                      |  | \n");
    printf("             / _ \\                     |  | \n");
    printf("            / / \\ \\                    |  | \n");
    printf("           / /   \\ \\                   |  | \n");
    printf("           ||     ||                   |  | \n");
    printf("           ||     ||                   |  | \n");
    printf("           ||     ||                   |  | \n");
    printf("           ||     ||                   |  | \n");
    printf("           ||     ||                   |  | \n");
    printf("          / /     \\ \\                  |  | \n");
    printf("         /_/       \\_\\                 |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  | \n");
    printf("                                       |  |\n");
    printf("                                       |  |\n");
    printf("              _________________________|  |___________________\n"); 
    printf("             |             GNAHNAM                            | \n");
    printf("              ------------------------------------------------\n\n");
}
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

It would have looked better had you posted the results of the code instead. :spin:
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

No, he needed to post the code so that we'd have it when we go home.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Post by MarauderIIC »

No, because then the magic of webservers would eat the spaces.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

MarauderIIC wrote:No, because then the magic of webservers would eat the spaces.
Well the spaces weren't eaten alive in the coded version so that logic doesn't not even hold up yo.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Post by MarauderIIC »

I mean, he would have had to use code brackets anyway. Misread you, sorry.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Post Reply