Page 1 of 1

ASCII Art for C Programming.

Posted: Thu Dec 09, 2004 3:01 pm
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                        |
              ------------------------------------------------


Posted: Thu Dec 09, 2004 3:43 pm
by Wutai
Your teacher is encouraging you to draw a picture of a man hanging, dead, from a rope?!?!?!??!?!?!?!?!?? :worship:

Posted: Thu Dec 09, 2004 4:09 pm
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!

Posted: Thu Dec 09, 2004 6:23 pm
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.

Posted: Thu Dec 09, 2004 6:26 pm
by Falco Girgis
You mean a game an editor made for you...

We're about programming, not using game makers.

Posted: Thu Dec 09, 2004 9:10 pm
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?

Posted: Thu Dec 09, 2004 9:13 pm
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!

Posted: Tue Dec 14, 2004 2:32 pm
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");
}

Posted: Tue Dec 14, 2004 3:55 pm
by JS Lemming
It would have looked better had you posted the results of the code instead. :spin:

Posted: Tue Dec 14, 2004 4:57 pm
by Falco Girgis
No, he needed to post the code so that we'd have it when we go home.

Posted: Wed Dec 15, 2004 8:29 pm
by MarauderIIC
No, because then the magic of webservers would eat the spaces.

Posted: Thu Dec 16, 2004 4:31 pm
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.

Posted: Sun Dec 19, 2004 9:57 pm
by MarauderIIC
I mean, he would have had to use code brackets anyway. Misread you, sorry.