3 Replies - 2513 Views - Last Post: 18 June 2013 - 03:55 PM Rate Topic: -----

#1 Aphex19  Icon User is offline

  • Born again Pastafarian.
  • member icon

Reputation: 614
  • View blog
  • Posts: 1,873
  • Joined: 02-August 09

Embarrassing hangman code

Posted 26 January 2013 - 08:21 PM

Where do I even start with this abomination? I can hardly believe that it was only 4 years ago that I was writing code like this, all be it for a short period of time, where I like to think I improve and learned quickly.

At the time, I used an outdated Borland compiler which was the product of me learning from this book, and apparently, I had no concept of indentation, header files or really any kind of good programming practices.

Here's the full "Hangman.cpp" file for your amusement.

/* ******************************************
 Hangman game, written by Ryan Hackett. 15/03/09
********************************************* */


#include <iostream>
#include <windows.h>
#include <conio.h>

using namespace std;

class hangclass1
{
public:void func1()
{
cout << "Lets play hangman." << endl;

cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
	 << "|" << endl
	 << "|" << endl;

Sleep (1000);
clrscr();
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl;
Sleep (500);
clrscr();
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl;
Sleep (500);
clrscr();
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl;
Sleep (500);
clrscr();
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl;
Sleep (500);
clrscr();
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl;
Sleep (500);
clrscr();
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl;

Sleep (500);
clrscr();
}
};


#include <iostream>
#include <conio.h>
#include <windows.h>
#include <string>


using namespace std;

string response;
string response1 = " ";
string response2 = "  ";
string response3 = "   ";
string response4 = "    ";
string response5 = "     ";
string response6 = "      ";
string letter1 = "_";
string letter2 = "_";
string letter3 = "_";
string letter4 = "_";
string letter5 = "_";
string letter6 = "_";
string letter7 = "_";
string letter8 = "_";
string letter9 = "_";

void func1();
void func2();
void func3();
void func4();
void func5();
void func6();
void func7();
void func8();
void func9();
void func10();

int main ()
{
srand((unsigned)time(0));
int rand1;
rand1 = (rand()%10)+1;

if (rand1 == 1)
func1();
if (rand1 == 2)
func2();
if (rand1 == 3)
func3();
if (rand1 == 4)
func4();
if (rand1 == 5)
func5();
if (rand1 == 5)
func5();
if (rand1 == 6)
func6();
if (rand1 == 7)
func7();
if (rand1 == 8)
func8();
if (rand1 == 9)
func9();
if (rand1 == 10)
func10();
}





void func1 ()
{

int num = 0;

hangclass1 x;
x.func1();

int a1;

while (a1 == a1)
{

cout << "Please enter your guess. (type hint for a hint.)" << endl;
cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << endl << endl << response1 <<" "<< response2 <<" " << response3 <<" "<< response4 <<" "<< response5 <<" " << response6 << endl;

cin >> response;

if (response == "hint")
{
cout << "All programmers have this." << endl;
Sleep (2000);
}
clrscr();
if (response != "c"
&& response != "o"
&& response != "m"
&& response != "p"
&& response != "u"
&& response != "t"
&& response != "e"
&& response != "r"
&& response != "hint")
{
clrscr();
num ++;

 if (num == 1)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 4 wrong guesses left" << endl;
 }
  if (num == 2)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 3 wrong guesses left" << endl;
 }
   if (num == 3)
 {
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 2 wrong guesses left" << endl;
 }
    if (num == 4)
 {
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 1 wrong guess left" << endl;
 }
     if (num == 5)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "No more mistakes, his life is in your hands!" << endl;
 }
      if (num == 6)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "COMPUTER";
	 Sleep (2000);
	 while (num == 6)
	 {
	 clrscr();
	 cout << "YOU LOSE!" << endl;
	 Sleep (500);
	 clrscr();
	 cout << " " << endl;
	 Sleep (500);
	 clrscr();
	 }

 }
 Sleep(2000);

if (num == 1)
response1 = response;
if (num == 2)
response2 = response;
if (num == 3)
response3 = response;
if (num == 4)
response4 = response;
if (num == 5)
response5 = response;
if (num == 6)
response6 = response;

}

if (response == "c")
letter1 = "C";

if (response == "o")
letter2 = "O";

if (response == "m")
letter3 = "M";

if (response == "p")
letter4 = "P";

if (response == "u")
letter5 = "U";

if (response == "t")
letter6 = "T";

if (response == "e")
letter7 = "E";

if (response == "r")
letter8 = "R";

cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << endl;

if	(letter1 == "C"
&& letter2 == "O"
&& letter3 == "M"
&& letter4 == "P"
&& letter5 == "U"
&& letter6 == "T"
&& letter7 == "E"
&& letter8 == "R")
{
Sleep (1000);
while (letter1 == "C"
&& letter2 == "O"
&& letter3 == "M"
&& letter4 == "P"
&& letter5 == "U"
&& letter6 == "T"
&& letter7 == "E"
&& letter8 == "R")
{
clrscr();
cout << "YOU WIN!" << endl;
Sleep (500);
clrscr();
cout << " " << endl;
Sleep (500);
clrscr();
}
}
clrscr();
}
}








void func2 ()
{

int num = 0;


hangclass1 x;
x.func1();

int a1;

while (a1 == a1)
{

cout << "Please enter your guess. (type hint for a hint.)" << endl;
cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << endl << endl << response1 <<" "<< response2 <<" " << response3 <<" "<< response4 <<" "<< response5 <<" " << response6<< endl;

cin >> response;

if (response == "hint")
{
cout << "Book of facts." << endl;
Sleep (2000);
}
clrscr();
if (response != "a"
&& response != "l"
&& response != "m"
&& response != "a"
&& response != "n"
&& response != "a"
&& response != "c"
&& response != "hint")
{
clrscr();
num ++;

 if (num == 1)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 4 wrong guesses left" << endl;
 }
  if (num == 2)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 3 wrong guesses left" << endl;
 }
   if (num == 3)
 {
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 2 wrong guesses left" << endl;
 }
    if (num == 4)
 {
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 1 wrong guess left" << endl;
 }
     if (num == 5)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "No more mistakes, his life is in your hands!" << endl;
 }
      if (num == 6)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "ALMANAC";
	 Sleep (2000);
	 while (num == 6)
	 {
	 clrscr();
	 cout << "YOU LOSE!" << endl;
	 Sleep (500);
	 clrscr();
	 cout << " " << endl;
	 Sleep (500);
	 clrscr();
	 }

 }
 Sleep(2000);
if (num == 1)
response1 = response;
if (num == 2)
response2 = response;
if (num == 3)
response3 = response;
if (num == 4)
response4 = response;
if (num == 5)
response5 = response;
if (num == 6)
response6 = response;

}

if (response == "a")
letter1 = "A";

if (response == "l")
letter2 = "L";

if (response == "m")
letter3 = "M";

if (response == "a")
letter4 = "A";

if (response == "n")
letter5 = "N";

if (response == "a")
letter6 = "A";

if (response == "c")
letter7 = "C";

cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << endl;

if	(letter1 == "A"
&& letter2 == "L"
&& letter3 == "M"
&& letter4 == "A"
&& letter5 == "N"
&& letter6 == "A"
&& letter7 == "C")
{
Sleep (1000);
while (letter1 == "A"
&& letter2 == "L"
&& letter3 == "M"
&& letter4 == "A"
&& letter5 == "N"
&& letter6 == "A"
&& letter7 == "C")
{
clrscr();
cout << "YOU WIN!" << endl;
Sleep (500);
clrscr();
cout << " " << endl;
Sleep (500);
clrscr();
}
}
clrscr();
}
}









void func3 ()
{

int num = 0;


hangclass1 x;
x.func1();

int a1;

while (a1 == a1)
{

cout << "Please enter your guess. (type hint for a hint.)" << endl;
cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << endl << endl << response1 <<" "<< response2 <<" " << response3 <<" "<< response4 <<" "<< response5 <<" " << response6<< endl;

cin >> response;

if (response == "hint")
{
cout << "These travel across oceans usually." << endl;
Sleep (2000);
}
clrscr();
if (response != "s"
&& response != "h"
&& response != "i"
&& response != "p"
&& response != "m"
&& response != "e"
&& response != "n"
&& response != "t"
&& response != "hint")
{
clrscr();
num ++;

 if (num == 1)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 4 wrong guesses left" << endl;
 }
  if (num == 2)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 3 wrong guesses left" << endl;
 }
   if (num == 3)
 {
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 2 wrong guesses left" << endl;
 }
    if (num == 4)
 {
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 1 wrong guess left" << endl;
 }
     if (num == 5)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "No more mistakes, his life is in your hands!" << endl;
 }
      if (num == 6)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "SHIPMENT";
	 Sleep (2000);
	 while (num == 6)
	 {
	 clrscr();
	 cout << "YOU LOSE!" << endl;
	 Sleep (500);
	 clrscr();
	 cout << " " << endl;
	 Sleep (500);
	 clrscr();
	 }

 }
 Sleep(2000);
if (num == 1)
response1 = response;
if (num == 2)
response2 = response;
if (num == 3)
response3 = response;
if (num == 4)
response4 = response;
if (num == 5)
response5 = response;
if (num == 6)
response6 = response;

}

if (response == "s")
letter1 = "S";

if (response == "h")
letter2 = "H";

if (response == "i")
letter3 = "I";

if (response == "p")
letter4 = "P";

if (response == "m")
letter5 = "M";

if (response == "e")
letter6 = "E";

if (response == "n")
letter7 = "N";

if (response == "t")
letter8 = "T";

cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << endl;

if	(letter1 == "S"
&& letter2 == "H"
&& letter3 == "I"
&& letter4 == "P"
&& letter5 == "M"
&& letter6 == "E"
&& letter7 == "N"
&& letter8 == "T")
{
Sleep (1000);
while (letter1 == "S"
&& letter2 == "H"
&& letter3 == "I"
&& letter4 == "P"
&& letter5 == "M"
&& letter6 == "E"
&& letter7 == "N"
&& letter8 == "T")
{
clrscr();
cout << "YOU WIN!" << endl;
Sleep (500);
clrscr();
cout << " " << endl;
Sleep (500);
clrscr();
}
}
clrscr();
}
}








void func4 ()
{

int num = 0;


hangclass1 x;
x.func1();

int a1;

while (a1 == a1)
{

cout << "Please enter your guess. (type hint for a hint.)" << endl;
cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << endl << endl << response1 <<" "<< response2 <<" " << response3 <<" "<< response4 <<" "<< response5 <<" " << response6 << endl;

cin >> response;

if (response == "hint")
{
cout << "To go away from." << endl;
Sleep (3000);
}
clrscr();
if (response != "r"
&& response != "e"
&& response != "c"
&& response != "e"
&& response != "d"
&& response != "e"
&& response != "d"
&& response != "hint")
{
clrscr();
num ++;

 if (num == 1)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 4 wrong guesses left" << endl;
 }
  if (num == 2)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 3 wrong guesses left" << endl;
 }
   if (num == 3)
 {
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 2 wrong guesses left" << endl;
 }
    if (num == 4)
 {
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 1 wrong guess left" << endl;
 }
     if (num == 5)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "No more mistakes, his life is in your hands!" << endl;
 }
      if (num == 6)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "RECEDED";
	 Sleep (2000);
	 while (num == 6)
	 {
	 clrscr();
	 cout << "YOU LOSE!" << endl;
	 Sleep (500);
	 clrscr();
	 cout << " " << endl;
	 Sleep (500);
	 clrscr();
	 }

 }
 Sleep(2000);
if (num == 1)
response1 = response;
if (num == 2)
response2 = response;
if (num == 3)
response3 = response;
if (num == 4)
response4 = response;
if (num == 5)
response5 = response;
if (num == 6)
response6 = response;

}

if (response == "r")
letter1 = "R";

if (response == "e")
letter2 = "E";

if (response == "c")
letter3 = "C";

if (response == "e")
letter4 = "E";

if (response == "d")
letter5 = "D";

if (response == "e")
letter6 = "E";

if (response == "d")
letter7 = "D";

cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << endl;

if	(letter1 == "R"
&& letter2 == "E"
&& letter3 == "C"
&& letter4 == "E"
&& letter5 == "D"
&& letter6 == "E"
&& letter7 == "D")
{
Sleep (1000);
while (letter1 == "R"
&& letter2 == "E"
&& letter3 == "C"
&& letter4 == "E"
&& letter5 == "D"
&& letter6 == "E"
&& letter7 == "D")
{
clrscr();
cout << "YOU WIN!" << endl;
Sleep (500);
clrscr();
cout << " " << endl;
Sleep (500);
clrscr();
}
}
clrscr();
}
}









void func5 ()
{

int num = 0;

hangclass1 x;
x.func1();

int a1;

while (a1 == a1)
{

cout << "Please enter your guess. (type hint for a hint.)" << endl;
cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << endl << endl << response1 <<" "<< response2 <<" " << response3 <<" "<< response4 <<" "<< response5 <<" " << response6<< endl;;

cin >> response;

if (response == "hint")
{
cout << "Teams do this before a game." << endl;
Sleep (2000);
}
clrscr();
if (response != "h"
&& response != "u"
&& response != "s"
&& response != "t"
&& response != "l"
&& response != "i"
&& response != "n"
&& response != "g"
&& response != "hint")
{
clrscr();
num ++;

 if (num == 1)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 4 wrong guesses left" << endl;
 }
  if (num == 2)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 3 wrong guesses left" << endl;
 }
   if (num == 3)
 {
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 2 wrong guesses left" << endl;
 }
    if (num == 4)
 {
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 1 wrong guess left" << endl;
 }
     if (num == 5)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "No more mistakes, his life is in your hands!" << endl;
 }
      if (num == 6)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "HUSTLING";
	 Sleep (2000);
	 while (num == 6)
	 {
	 clrscr();
	 cout << "YOU LOSE!" << endl;
	 Sleep (500);
	 clrscr();
	 cout << " " << endl;
	 Sleep (500);
	 clrscr();
	 }

 }
 Sleep(2000);
if (num == 1)
response1 = response;
if (num == 2)
response2 = response;
if (num == 3)
response3 = response;
if (num == 4)
response4 = response;
if (num == 5)
response5 = response;
if (num == 6)
response6 = response;

}

if (response == "h")
letter1 = "H";

if (response == "u")
letter2 = "U";

if (response == "s")
letter3 = "S";

if (response == "t")
letter4 = "T";

if (response == "l")
letter5 = "L";

if (response == "i")
letter6 = "I";

if (response == "n")
letter7 = "N";

if (response == "g")
letter8 = "G";

cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << endl;

if	(letter1 == "H"
&& letter2 == "U"
&& letter3 == "S"
&& letter4 == "T"
&& letter5 == "L"
&& letter6 == "I"
&& letter7 == "N"
&& letter8 == "G")
{
Sleep (1000);
while (letter1 == "H"
&& letter2 == "U"
&& letter3 == "S"
&& letter4 == "T"
&& letter5 == "L"
&& letter6 == "I"
&& letter7 == "N"
&& letter8 == "G")
{
clrscr();
cout << "YOU WIN!" << endl;
Sleep (500);
clrscr();
cout << " " << endl;
Sleep (500);
clrscr();
}
}
clrscr();
}
}










void func6 ()
{

int num = 0;


hangclass1 x;
x.func1();

int a1;

while (a1 == a1)
{

cout << "Please enter your guess. (type hint for a hint.)" << endl;
cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << endl << endl << response1 <<" "<< response2 <<" " << response3 <<" "<< response4 <<" "<< response5 <<" " << response6 << endl;

cin >> response;

if (response == "hint")
{
cout << "These can make electricity." << endl;
Sleep (2000);
}
clrscr();
if (response != "g"
&& response != "e"
&& response != "n"
&& response != "e"
&& response != "r"
&& response != "a"
&& response != "t"
&& response != "e"
&& response != "hint")
{
clrscr();
num ++;

 if (num == 1)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 4 wrong guesses left" << endl;
 }
  if (num == 2)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 3 wrong guesses left" << endl;
 }
   if (num == 3)
 {
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 2 wrong guesses left" << endl;
 }
    if (num == 4)
 {
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 1 wrong guess left" << endl;
 }
     if (num == 5)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "No more mistakes, his life is in your hands!" << endl;
 }
      if (num == 6)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "GENERATOR";
	 Sleep (2000);
	 while (num == 6)
	 {
	 clrscr();
	 cout << "YOU LOSE!" << endl;
	 Sleep (500);
	 clrscr();
	 cout << " " << endl;
	 Sleep (500);
	 clrscr();
	 }

 }
 Sleep(2000);
if (num == 1)
response1 = response;
if (num == 2)
response2 = response;
if (num == 3)
response3 = response;
if (num == 4)
response4 = response;
if (num == 5)
response5 = response;
if (num == 6)
response6 = response;

}

if (response == "g")
letter1 = "G";

if (response == "e")
letter2 = "E";

if (response == "n")
letter3 = "N";

if (response == "e")
letter4 = "E";

if (response == "r")
letter5 = "R";

if (response == "a")
letter6 = "A";

if (response == "t")
letter7 = "T";

if (response == "e")
letter8 = "E";

cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << endl;

if	(letter1 == "G"
&& letter2 == "E"
&& letter3 == "N"
&& letter4 == "E"
&& letter5 == "R"
&& letter6 == "A"
&& letter7 == "T"
&& letter8 == "E")
{
Sleep (1000);
while (letter1 == "G"
&& letter2 == "E"
&& letter3 == "N"
&& letter4 == "E"
&& letter5 == "R"
&& letter6 == "A"
&& letter7 == "T"
&& letter8 == "E")
{
clrscr();
cout << "YOU WIN!" << endl;
Sleep (500);
clrscr();
cout << " " << endl;
Sleep (500);
clrscr();
}
}
clrscr();
}
}










void func7 ()
{
int num = 0;


hangclass1 x;
x.func1();

int a1;

while (a1 == a1)
{

cout << "Please enter your guess. (type hint for a hint.)" << endl;
cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << " " << letter9
	 << endl << endl << response1 <<" "<< response2 <<" " << response3 <<" "<< response4 <<" "<< response5 <<" " << response6 << endl;

cin >> response;

if (response == "hint")
{
cout << "Putting two or more things together." << endl;
Sleep (3000);
}
clrscr();
if (response != "c"
&& response != "o"
&& response != "m"
&& response != "b"
&& response != "i"
&& response != "n"
&& response != "i"
&& response != "n"
&& response != "g"
&& response != "hint")
{
clrscr();
num ++;

 if (num == 1)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 4 wrong guesses left" << endl;
 }
  if (num == 2)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 3 wrong guesses left" << endl;
 }
   if (num == 3)
 {
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 2 wrong guesses left" << endl;
 }
    if (num == 4)
 {
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 1 wrong guess left" << endl;
 }
     if (num == 5)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "No more mistakes, his life is in your hands!" << endl;
 }
      if (num == 6)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "COMBINING";
	 Sleep (2000);
	 while (num == 6)
	 {
	 clrscr();
	 cout << "YOU LOSE!" << endl;
	 Sleep (500);
	 clrscr();
	 cout << " " << endl;
	 Sleep (500);
	 clrscr();
	 }

 }
 Sleep(2000);
if (num == 1)
response1 = response;
if (num == 2)
response2 = response;
if (num == 3)
response3 = response;
if (num == 4)
response4 = response;
if (num == 5)
response5 = response;
if (num == 6)
response6 = response;

}

if (response == "c")
letter1 = "C";

if (response == "o")
letter2 = "O";

if (response == "m")
letter3 = "M";

if (response == "b")
letter4 = "B";

if (response == "i")
letter5 = "I";

if (response == "n")
letter6 = "N";

if (response == "i")
letter7 = "I";

if (response == "n")
letter8 = "N";

if (response == "g")
letter9 = "G";

cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << " " << letter9
	 << endl;

if	(letter1 == "C"
&& letter2 == "O"
&& letter3 == "M"
&& letter4 == "B"
&& letter5 == "I"
&& letter6 == "N"
&& letter7 == "I"
&& letter8 == "N"
&& letter9 == "G")
{
Sleep (1000);
while (letter1 == "C"
&& letter2 == "O"
&& letter3 == "M"
&& letter4 == "B"
&& letter5 == "I"
&& letter6 == "N"
&& letter7 == "I"
&& letter8 == "N"
&& letter9 == "G")
{
clrscr();
cout << "YOU WIN!" << endl;
Sleep (500);
clrscr();
cout << " " << endl;
Sleep (500);
clrscr();
}
}
clrscr();
}
}










void func8 ()
{

int num = 0;


hangclass1 x;
x.func1();

int a1;

while (a1 == a1)
{

cout << "Please enter your guess. (type hint for a hint.)" << endl;
cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << " " << letter9
	 << endl << endl << response1 <<" "<< response2 <<" " << response3 <<" "<< response4 <<" "<< response5 <<" " << response6 << endl;

cin >> response;

if (response == "hint")
{
cout << "bugs bunny and bart simpson are both a........." << endl;
Sleep (3000);
}
clrscr();
if (response != "c"
&& response != "h"
&& response != "a"
&& response != "r"
&& response != "a"
&& response != "c"
&& response != "t"
&& response != "e"
&& response != "hint")
{
clrscr();
num ++;

 if (num == 1)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 4 wrong guesses left" << endl;
 }
  if (num == 2)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 3 wrong guesses left" << endl;
 }
   if (num == 3)
 {
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 2 wrong guesses left" << endl;
 }
    if (num == 4)
 {
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 1 wrong guess left" << endl;
 }
     if (num == 5)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "No more mistakes, his life is in your hands!" << endl;
 }
      if (num == 6)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "CHARACTER";
	 Sleep (2000);
	 while (num == 6)
	 {
	 clrscr();
	 cout << "YOU LOSE!" << endl;
	 Sleep (500);
	 clrscr();
	 cout << " " << endl;
	 Sleep (500);
	 clrscr();
	 }

 }
 Sleep(2000);
if (num == 1)
response1 = response;
if (num == 2)
response2 = response;
if (num == 3)
response3 = response;
if (num == 4)
response4 = response;
if (num == 5)
response5 = response;
if (num == 6)
response6 = response;

}

if (response == "c")
letter1 = "C";

if (response == "h")
letter2 = "H";

if (response == "a")
letter3 = "A";

if (response == "r")
letter4 = "R";

if (response == "a")
letter5 = "A";

if (response == "c")
letter6 = "C";

if (response == "t")
letter7 = "T";

if (response == "e")
letter8 = "E";

if (response == "r")
letter9 = "R";

cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << " " << letter9
	 << endl;

if	(letter1 == "C"
&& letter2 == "H"
&& letter3 == "A"
&& letter4 == "R"
&& letter5 == "A"
&& letter6 == "C"
&& letter7 == "T"
&& letter8 == "E"
&& letter9 == "R")
{
Sleep (1000);
while (letter1 == "C"
&& letter2 == "H"
&& letter3 == "A"
&& letter4 == "R"
&& letter5 == "A"
&& letter6 == "C"
&& letter7 == "T"
&& letter8 == "E"
&& letter9 == "R")
{
clrscr();
cout << "YOU WIN!" << endl;
Sleep (500);
clrscr();
cout << " " << endl;
Sleep (500);
clrscr();
}
}
clrscr();
}
}









void func9 ()
{

int num = 0;


hangclass1 x;
x.func1();

int a1;

while (a1 == a1)
{

cout << "Please enter your guess. (type hint for a hint.)" << endl;
cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << " " << letter9
	 << endl << endl << response1 <<" "<< response2 <<" " << response3 <<" "<< response4 <<" "<< response5 <<" " << response6 << endl;

cin >> response;

if (response == "hint")
{
cout << "Going between two or more things." << endl;
Sleep (3000);
}
clrscr();
if (response != "a"
&& response != "l"
&& response != "t"
&& response != "e"
&& response != "r"
&& response != "n"
&& response != "a"
&& response != "t"
&& response != "e"
&& response != "hint")
{
clrscr();
num ++;

 if (num == 1)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 4 wrong guesses left" << endl;
 }
  if (num == 2)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 3 wrong guesses left" << endl;
 }
   if (num == 3)
 {
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 2 wrong guesses left" << endl;
 }
    if (num == 4)
 {
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 1 wrong guess left" << endl;
 }
     if (num == 5)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "No more mistakes, his life is in your hands!" << endl;
 }
      if (num == 6)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "ALTERNATE";
	 Sleep (2000);
	 while (num == 6)
	 {
	 clrscr();
	 cout << "YOU LOSE!" << endl;
	 Sleep (500);
	 clrscr();
	 cout << " " << endl;
	 Sleep (500);
	 clrscr();
	 }

 }
 Sleep(2000);
if (num == 1)
response1 = response;
if (num == 2)
response2 = response;
if (num == 3)
response3 = response;
if (num == 4)
response4 = response;
if (num == 5)
response5 = response;
if (num == 6)
response6 = response;

}

if (response == "a")
letter1 = "A";

if (response == "l")
letter2 = "L";

if (response == "t")
letter3 = "T";

if (response == "e")
letter4 = "E";

if (response == "r")
letter5 = "R";

if (response == "n")
letter6 = "N";

if (response == "a")
letter7 = "A";

if (response == "t")
letter8 = "T";

if (response == "e")
letter9 = "E";

cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << " " << letter9
	 << endl;

if	(letter1 == "A"
&& letter2 == "L"
&& letter3 == "T"
&& letter4 == "E"
&& letter5 == "R"
&& letter6 == "N"
&& letter7 == "A"
&& letter8 == "T"
&& letter9 == "E")
{
Sleep (1000);
while (letter1 == "A"
&& letter2 == "L"
&& letter3 == "T"
&& letter4 == "E"
&& letter5 == "R"
&& letter6 == "N"
&& letter7 == "A"
&& letter8 == "T"
&& letter9 == "E")
{
clrscr();
cout << "YOU WIN!" << endl;
Sleep (500);
clrscr();
cout << " " << endl;
Sleep (500);
clrscr();
}
}
clrscr();
}
}








void func10 ()
{

int num = 0;


hangclass1 x;
x.func1();

int a1;

while (a1 == a1)
{

cout << "Please enter your guess. (type hint for a hint.)" << endl;
cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << endl << endl << response1 <<" "<< response2 <<" " << response3 <<" "<< response4 <<" "<< response5 <<" " << response6 << endl;

cin >> response;

if (response == "hint")
{
cout << "Needed." << endl;
Sleep (3000);
}
clrscr();
if (response != "r"
&& response != "e"
&& response != "q"
&& response != "u"
&& response != "i"
&& response != "r"
&& response != "e"
&& response != "d"
&& response != "hint")
{
clrscr();
num ++;

 if (num == 1)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 4 wrong guesses left" << endl;
 }
  if (num == 2)
 {
cout << " " << endl
     << " " << endl
     << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 3 wrong guesses left" << endl;
 }
   if (num == 3)
 {
cout << " " << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 2 wrong guesses left" << endl;
 }
    if (num == 4)
 {
cout << "______" << endl
     << "|/" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "You have 1 wrong guess left" << endl;
 }
     if (num == 5)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl
     << "|" << endl << endl
	 << "No more mistakes, his life is in your hands!" << endl;
 }
      if (num == 6)
 {
cout << "______" << endl
     << "|/   |" << endl
	 << "|    O" << endl
	 << "|   /|\\ " << endl
	 << "|   / \\ " << endl
     << "|" << endl
     << "|" << endl << endl
	 << "REQUIRED";
	 Sleep (2000);
	 while (num == 6)
	 {
	 clrscr();
	 cout << "YOU LOSE!" << endl;
	 Sleep (500);
	 clrscr();
	 cout << " " << endl;
	 Sleep (500);
	 clrscr();
	 }

 }
 Sleep(2000);
if (num == 1)
response1 = response;
if (num == 2)
response2 = response;
if (num == 3)
response3 = response;
if (num == 4)
response4 = response;
if (num == 5)
response5 = response;
if (num == 6)
response6 = response;

}

if (response == "r")
letter1 = "R";

if (response == "e")
letter2 = "E";

if (response == "q")
letter3 = "Q";

if (response == "u")
letter4 = "U";

if (response == "i")
letter5 = "I";

if (response == "r")
letter6 = "R";

if (response == "e")
letter7 = "E";

if (response == "d")
letter8 = "D";

cout << endl << endl << endl;
cout << letter1
     << " " << letter2
	 << " " << letter3
	 << " " << letter4
	 << " " << letter5
	 << " " << letter6
	 << " " << letter7
	 << " " << letter8
	 << endl;

if	(letter1 == "R"
&& letter2 == "E"
&& letter3 == "Q"
&& letter4 == "U"
&& letter5 == "I"
&& letter6 == "R"
&& letter7 == "E"
&& letter8 == "D")
{
Sleep (1000);
while (letter1 == "R"
&& letter2 == "E"
&& letter3 == "Q"
&& letter4 == "U"
&& letter5 == "I"
&& letter6 == "R"
&& letter7 == "E"
&& letter8 == "D")
{
clrscr();
cout << "YOU WIN!" << endl;
Sleep (500);
clrscr();
cout << " " << endl;
Sleep (500);
clrscr();
}
}
clrscr();
}
}


What's worse is that I was actually very proud of this at the time and I uploaded it to an online code sharing site which doesn't seem to allow deletions. It can be deleted, and has been. Hey, at least I didn't use "void main"...

Please, somebody ease my pain. Tell me that I am not the only one to have written terrible things like this in more naive times.

This post has been edited by Aphex19: 26 January 2013 - 08:33 PM


Is This A Good Question/Topic? 4
  • +

Replies To: Embarrassing hangman code

#2 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3224
  • View blog
  • Posts: 10,825
  • Joined: 12-December 12

Re: Embarrassing hangman code

Posted 26 January 2013 - 08:34 PM

I think the man might have died of boredom with all the hanging around :sleep1:
Was This Post Helpful? 3
  • +
  • -

#3 lewm  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 160
  • Joined: 29-March 13

Re: Embarrassing hangman code

Posted 28 April 2013 - 12:20 PM

Lol heres my first attempt its probably worse.
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <string.h>

char pl, name[50]={0};
int xx=1, x=0, y=0, counter=0, lives=11, pgame=0, pgame2=0, a1=0, a2=0, a3=0, a4=0, a5=0, a6=0, a7=0, a8=0, a9=0, a10=0;
int a11=0, a12=0, a13=0, a14=0, a15=0, a16=0, a17=0, a18=0, a19=0, a20=0, pscore=0, mark=0;

main()
{
    level1();
    if(pscore>=6 && mark==0)
    {
        system("cls");
        printf("You have scored %d out of 10.\n\nYou now qualify for level 2.\n\nPress any key...", pscore);
        getch();
        level2();
        mark++;
    }
    if(mark==0 && pscore<6) 
    {  	
        system("cls");
        printf("You have scored %d out of 10.\n\nYou do not qualify for level 2, you need to score at least 6.\n\nPress any key...", pscore);
        getch();
    }     
    if(mark==1)
    {
        system("cls");
        printf("You have scored %d out of 20\n\nThank you for playing\n\nPress any key...", pscore);
        getch();
    }
    scoreboard();
    return 0;
}

scoreboard()
{
    int hs1, hs2, hs3;
    char hsn1[50], hsn2[50], hsn3[50];
    
    FILE *p;
    
    while( (p = fopen("score", "r") ) == NULL)
    {
        p=fopen("score", "w");
        fprintf(p, "Joe1 0\nJoe2 0\nJoe3 0");
        fclose(p);
    }
    fscanf(p, "%s %d %s %d %s %d", &hsn1, &hs1, &hsn2, &hs2, &hsn3, &hs3);
    fclose(p);    
    if(pscore > hs1)
    {
        hs3 = hs2;
        hs2 = hs1;
        hs1 = pscore;
        strcpy(hsn3, hsn2);
        strcpy(hsn2, hsn1);
        strcpy(hsn1, name);
    }
    else
    if(pscore > hs2)
    {
        hs3 = hs2;
        hs2 = pscore;
        strcpy(hsn3, hsn2);
        strcpy(hsn2, name);
    }
    else
    if(pscore > hs3)
    {
        hs3 = pscore;
        strcpy(hsn3, name);
    }
    p=fopen("score", "w");
    fprintf(p, "%s %d %s %d %s %d", hsn1, hs1, hsn2, hs2, hsn3, hs3);
    fclose(p);
    system("cls");
    printf("HIGH SCORES\n\n%s %d\n%s %d\n%s %d\n\nPress any key...", hsn1, hs1, hsn2, hs2, hsn3, hs3);
    getch();
}


level2()
{
    mains2();
    game11();
    mains2();
    game12();
    mains2();
    game13();
    mains2();
    game14();
    mains2();
    game15();
    mains2();
    game16();
    mains2();
    game17();
    mains2();
    game18();
    mains2();
    game19();
    mains2();
    game20();
}

level1()
{    
    puts("HANGMAN\n\nPlease enter your name: ");
    scanf("%s", &name);   
    mains();
    game1();
    mains();
    game2();
    mains();
    game3();
    mains();    
    game4();
    mains();
    game5();
    mains();
    game6();
    mains();
    game7();
    mains();
    game8();
    mains();
    game9();
    mains();
    game10();
}

game20() // Xu //
{
    gotoxy(x=1, y=5);
    puts("--");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'x':
                    gotoxy(x=1, y=5);
                    puts("X");            
                     a1=1;
                     break;
                case 'X':
                    gotoxy(x=1, y=5);
                    puts("X");                    
                    a1=1;
                    break;
                case 'u':
                    gotoxy(x=2, y=5);
                    puts("U");                
                    a2=1;
                    break;
                case 'U':
                    gotoxy(x=2, y=5);
                    puts("U");   
                    a2=1;
                    break;        
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0)
        {
                puts("Sorry you lose the answer was:    XU\n\nXU = An aluminum coin and monetary unit of Vietnam\nthe 100th part of a dong.");
                Beep(100,400);
                Beep(75,400);
        }
        else
        {
            puts("Congratulations                                      \n\nXU = An aluminum coin and monetary unit of Vietnam\nthe 100th part of a dong.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game19() // Xi //
{
    gotoxy(x=1, y=5);
    puts("--");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'x':
                    gotoxy(x=1, y=5);
                    puts("X");            
                     a1=1;
                     break;
                case 'X':
                    gotoxy(x=1, y=5);
                    puts("X");                    
                    a1=1;
                    break;
                case 'i':
                    gotoxy(x=2, y=5);
                    puts("I");                
                    a2=1;
                    break;
                case 'I':
                    gotoxy(x=2, y=5);
                    puts("I");   
                    a2=1;
                    break;        
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0)
        {
                puts("Sorry you lose the answer was:    XI\n\nXI = The 14th letter of the greek alphabet.");
                Beep(100,400);
                Beep(75,400);
        }
        else
        {
            puts("Congratulations                                        \n\nXI = The 14th letter of the greek alphabet.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game18() // Qi //
{
    gotoxy(x=1, y=5);
    puts("--");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'q':
                    gotoxy(x=1, y=5);
                    puts("Q");            
                     a1=1;
                     break;
                case 'Q':
                    gotoxy(x=1, y=5);
                    puts("Q");                    
                    a1=1;
                    break;
                case 'i':
                    gotoxy(x=2, y=5);
                    puts("I");                
                    a2=1;
                    break;
                case 'I':
                    gotoxy(x=2, y=5);
                    puts("I");   
                    a2=1;
                    break;        
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0)
        {
                puts("Sorry you lose the answer was:    QI\n\nQI = Vital energy believed to circulate round the body in\ncurrents.");
                Beep(100,400);
                Beep(75,400);
        }
        else
        {
            puts("Congratulations                                      \n\nQI = Vital energy believed to circulate round the body in\ncurrents.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game17() // go //
{
    gotoxy(x=1, y=5);
    puts("--");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'g':
                    gotoxy(x=1, y=5);
                    puts("G");            
                     a1=1;
                     break;
                case 'G':
                    gotoxy(x=1, y=5);
                    puts("G");                    
                    a1=1;
                    break;
                case 'o':
                    gotoxy(x=2, y=5);
                    puts("O");                
                    a2=1;
                    break;
                case 'O':
                    gotoxy(x=2, y=5);
                    puts("O");   
                    a2=1;
                    break;        
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
                puts("Sorry you lose the answer was:    GO\n\nGO = To move or proceed, especially to or from something.");
                Beep(100,400);
                Beep(75,400);
        }
        else
        {
            puts("Congratulations                                      \n\nGO = To move or proceed, especially to or from something.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}


game16() // by //
{
    gotoxy(x=1, y=5);
    puts("--");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'b':
                    gotoxy(x=1, y=5);
                    puts("B");            
                     a1=1;
                     break;
                case 'B':
                    gotoxy(x=1, y=5);
                    puts("B");                    
                    a1=1;
                    break;
                case 'y':
                    gotoxy(x=2, y=5);
                    puts("Y");                
                    a2=1;
                    break;
                case 'Y':
                    gotoxy(x=2, y=5);
                    puts("Y");   
                    a2=1;
                    break;        
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
                puts("Sorry you lose the answer was:    BY\n\nBY = Near to or next to.");
                Beep(100,400);
                Beep(75,400);
        }
        else
        {
            puts("Congratulations                                      \n\nBY = Near to or next to.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}


game15() // pyx //
{
    gotoxy(x=1, y=5);
    puts("---");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'p':
                    gotoxy(x=1, y=5);
                    puts("P");            
                     a1=1;
                     break;
                case 'P':
                    gotoxy(x=1, y=5);
                    puts("P");                    
                    a1=1;
                    break;
                case 'y':
                    gotoxy(x=2, y=5);
                    puts("Y");                
                    a2=1;
                    break;
                case 'Y':
                    gotoxy(x=2, y=5);
                    puts("Y");   
                    a2=1;
                    break;        
                case 'x':
                    gotoxy(x=3, y=5);
                    puts("X");                
                    a3=1;
                    break;
                case 'X':
                    gotoxy(x=3, y=5);
                    puts("X"); 
                    a3=1;
                    break;
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1 && a3==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
                puts("Sorry you lose the answer was:    pyx\n\nPYX = The box or vessel in which the reserved Eucharist \nor Host is kept.");
                Beep(100,400);
                Beep(75,400);
        }                
        else
        {
            puts("Congratulations                                      \n\nPYX = The box or vessel in which the reserved Eucharist \nor Host is kept.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}


game14() // Sydney //
{
    gotoxy(x=1, y=5);
    puts("------");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 's':
                    gotoxy(x=1, y=5);
                    puts("S");            
                     a1=1;
                     break;
                case 'S':
                    gotoxy(x=1, y=5);
                    puts("S");                    
                    a1=1;
                    break;
                case 'y':
                    gotoxy(x=2, y=5);
                    puts("Y");                
                    a2=1;
                    gotoxy(x=6, y=5);
                    puts("Y"); 
                    a6=1;
                    break;
                case 'Y':
                    gotoxy(x=2, y=5);
                    puts("Y");   
                    a2=1;
                    gotoxy(x=6, y=5);
                    puts("Y"); 
                    a6=1;
                    break;        
                case 'd':
                    gotoxy(x=3, y=5);
                    puts("D");                
                    a3=1;
                    break;
                case 'D':
                    gotoxy(x=3, y=5);
                    puts("D"); 
                    a3=1;
                    break;
                    case 'n': case 'N':
                    gotoxy(x=4, y=5);
                    puts("N");   
                    a4=1;
                    break;        
                case 'e': case 'E':
                    gotoxy(x=5, y=5);
                    puts("E");                
                    a5=1;
                    break;
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1 && a3==1 && a4==1 && a5==1 && a6==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
                puts("Sorry you lose the answer was:    SYDNEY\n\nSYDNEY = A seaport in and the capital of New South Wales\nin SE Australia.");
                Beep(100,400);
                Beep(75,400);
        }                
        else
        {
            puts("Congratulations                                      \n\nSYDNEY = A seaport in and the capital of New South Wales\nin SE Australia.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}


game13() // why //
{
    gotoxy(x=1, y=5);
    puts("---");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'w':
                    gotoxy(x=1, y=5);
                    puts("W");            
                     a1=1;
                     break;
                case 'W':
                    gotoxy(x=1, y=5);
                    puts("W");                    
                    a1=1;
                    break;
                case 'h':
                    gotoxy(x=2, y=5);
                    puts("H");                
                    a2=1;
                    break;
                case 'H':
                    gotoxy(x=2, y=5);
                    puts("H");   
                    a2=1;
                    break;        
                case 'y':
                    gotoxy(x=3, y=5);
                    puts("Y");                
                    a3=1;
                    break;
                case 'Y':
                    gotoxy(x=3, y=5);
                    puts("Y"); 
                    a3=1;
                    break;
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1 && a3==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
                puts("Sorry you lose the answer was:    WHY\n\nWHY = For what? for what reason, cause, or purpose.");
                Beep(100,400);
                Beep(75,400);
        }                
        else
        {
            puts("Congratulations                                      \n\nWHY = For what? for what reason, cause, or purpose.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game12() // sky //
{
    gotoxy(x=1, y=5);
    puts("---");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 's':
                    gotoxy(x=1, y=5);
                    puts("S");            
                     a1=1;
                     break;
                case 'S':
                    gotoxy(x=1, y=5);
                    puts("S");                    
                    a1=1;
                    break;
                case 'k':
                    gotoxy(x=2, y=5);
                    puts("K");                
                    a2=1;
                    break;
                case 'K':
                    gotoxy(x=2, y=5);
                    puts("K");   
                    a2=1;
                    break;        
                case 'y':
                    gotoxy(x=3, y=5);
                    puts("Y");                
                    a3=1;
                    break;
                case 'Y':
                    gotoxy(x=3, y=5);
                    puts("Y"); 
                    a3=1;
                    break;
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1 && a3==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
                puts("Sorry you lose the answer was:    SKY\n\nSKY = The region of the clouds or the upper air\nthe upper atmosphere of the earth.");
                Beep(100,400);
                Beep(75,400);
        }                
        else
        {
            puts("Congratulations                                      \n\nSKY = The region of the clouds or the upper air\nthe upper atmosphere of the earth.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game11() // cry //
{
    gotoxy(x=1, y=5);
    puts("---");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'c':
                    gotoxy(x=1, y=5);
                    puts("C");            
                     a1=1;
                     break;
                case 'C':
                    gotoxy(x=1, y=5);
                    puts("C");                    
                    a1=1;
                    break;
                case 'r':
                    gotoxy(x=2, y=5);
                    puts("R");                
                    a2=1;
                    break;
                case 'R':
                    gotoxy(x=2, y=5);
                    puts("R");   
                    a2=1;
                    break;        
                case 'y':
                    gotoxy(x=3, y=5);
                    puts("Y");                
                    a3=1;
                    break;
                case 'Y':
                    gotoxy(x=3, y=5);
                    puts("Y"); 
                    a3=1;
                    break;
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1 && a3==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
                puts("Sorry you lose the answer was:    CRY\n\nCRY = To utter inarticulate sounds especially of\nlamentation, grief, or suffering, usually with tears.");
                Beep(100,400);
                Beep(75,400);
        }                
        else
        {
            puts("Congratulations                                      \n\nCRY = To utter inarticulate sounds especially of\nlamentation, grief, or suffering, usually with tears.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game10() // Sync //
{
    gotoxy(x=1, y=5);
    puts("----");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 's':
                    gotoxy(x=1, y=5);
                    puts("S");            
                     a1=1;
                     break;
                case 'S':
                    gotoxy(x=1, y=5);
                    puts("S");                    
                    a1=1;
                    break;
                case 'y':
                    gotoxy(x=2, y=5);
                    puts("Y");                
                    a2=1;
                    break;
                case 'Y':
                    gotoxy(x=2, y=5);
                    puts("Y");   
                    a2=1;
                    break;        
                case 'n':
                    gotoxy(x=3, y=5);
                    puts("N");                
                    a3=1;
                    break;
                case 'N':
                    gotoxy(x=3, y=5);
                    puts("N"); 
                    a3=1;
                    break;                   
                case 'c':
                    gotoxy(x=4, y=5);
                    puts("C");                  
                    a4=1;
                    break;
                case 'C':
                    gotoxy(x=4, y=5);
                    puts("C");
                    a4=1;
                    break;
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1 && a3==1 && a4==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
                puts("Sorry you lose the answer was:    SYNC\n\nSYNC = Harmony or harmonious relationship.\nTo synchronize, harmonize.");
                Beep(100,400);
                Beep(75,400);
        }                
        else
        {
            puts("Congratulations                                      \n\nSYNC = Harmony or harmonious relationship.\nTo synchronize, harmonize.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game9() // Lynx //
{
    gotoxy(x=1, y=5);
    puts("----");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'l':
                    gotoxy(x=1, y=5);
                    puts("L");            
                     a1=1;
                     break;
                case 'L':
                    gotoxy(x=1, y=5);
                    puts("L");                    
                    a1=1;
                    break;
                case 'y':
                    gotoxy(x=2, y=5);
                    puts("Y");                
                    a2=1;
                    break;
                case 'Y':
                    gotoxy(x=2, y=5);
                    puts("Y");   
                    a2=1;
                    break;        
                case 'n':
                    gotoxy(x=3, y=5);
                    puts("N");                
                    a3=1;
                    break;
                case 'N':
                    gotoxy(x=3, y=5);
                    puts("N"); 
                    a3=1;
                    break;                   
                case 'x':
                    gotoxy(x=4, y=5);
                    puts("X");                  
                    a4=1;
                    break;
                case 'X':
                    gotoxy(x=4, y=5);
                    puts("X");
                    a4=1;
                    break;
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1 && a3==1 && a4==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
                puts("Sorry you lose the answer was:    LYNX\n\nLYNX = Any of several wildcats of the genus Lynx\nor felis having long limbs, a short tail and usually\ntufted ears.");
                Beep(100,400);
                Beep(75,400);
        }                
        else
        {
            puts("Congratulations                                      \n\nLYNX = Any of several wildcats of the genus Lynx\nor felis having long limbs, a short tail and usually\ntufted ears.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game8() // gypsy //
{
    gotoxy(x=1, y=5);
    puts("-----");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'g':
                    gotoxy(x=1, y=5);
                    puts("G");            
                     a1=1;
                     break;
                case 'G':
                    gotoxy(x=1, y=5);
                    puts("G");                    
                    a1=1;
                    break;
                case 'y':
                    gotoxy(x=2, y=5);
                    puts("Y");
                    gotoxy(x=5, y=5);
                    puts("Y");                
                    a2=1;
                    break;
                case 'Y':
                    gotoxy(x=2, y=5);
                    puts("Y"); 
                    gotoxy(x=5, y=5);
                    puts("Y");  
                    a2=1;
                    break;        
                case 'p':
                    gotoxy(x=3, y=5);
                    puts("P");                
                    a3=1;
                    break;
                case 'P':
                    gotoxy(x=3, y=5);
                    puts("P"); 
                    a3=1;
                    break;                   
                case 's':
                    gotoxy(x=4, y=5);
                    puts("S");                  
                    a4=1;
                    break;
                case 'S':
                    gotoxy(x=4, y=5);
                    puts("S");
                    a4=1;
                    break;
                default:
                    lives--;
                    break;
                }                
        if(a1==1 && a2==1 && a3==1 && a4==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
            puts("Sorry you lose the answer was:    GYPSY\n\nGYPSY =  A person held to resemble a gypsy\nespecially in physical characteristics or in a\ntraditionally ascribed freedom or inclination to\nmove from place to place.\nA member of a nomadic, Caucasoid people of generally\nswarthy complexion, who migrated originally from India,\nsettling in various parts of Asia, Europe, and,\nmost recently, North America.");
                Beep(100,400);
                Beep(75,400);
        }            
        else
        {
            puts("Congratulations                                      \n\nGYPSY =  A person held to resemble a gypsy\nespecially in physical characteristics or in a\ntraditionally ascribed freedom or inclination to\nmove from place to place.\nA member of a nomadic, Caucasoid people of generally\nswarthy complexion, who migrated originally from India,\nsettling in various parts of Asia, Europe, and,\nmost recently, North America.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game7() // rhythm //
{
    gotoxy(x=1, y=5);
    puts("------");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'r':
                    gotoxy(x=1, y=5);
                    puts("R");            
                     a1=1;
                     break;
                case 'R':
                    gotoxy(x=1, y=5);
                    puts("R");                    
                    a1=1;
                    break;
                case 'h':
                    gotoxy(x=2, y=5);
                    puts("H");
                    gotoxy(x=5, y=5);
                    puts("H");                
                    a2=1;
                    break;
                case 'H':
                    gotoxy(x=2, y=5);
                    puts("H"); 
                    gotoxy(x=5, y=5);
                    puts("H");  
                    a2=1;
                    break;        
                case 'y':
                    gotoxy(x=3, y=5);
                    puts("Y");                
                    a3=1;
                    break;
                case 'Y':
                    gotoxy(x=3, y=5);
                    puts("Y"); 
                    a3=1;
                    break;                   
                case 't':
                    gotoxy(x=4, y=5);
                    puts("T");                  
                    a4=1;
                    break;
                case 'T':
                    gotoxy(x=4, y=5);
                    puts("T");
                    a4=1;
                    break;
                case 'm':
                    gotoxy(x=6, y=5);
                    puts("M");                  
                    a5=1;
                    break;
                case 'M':
                    gotoxy(x=6, y=5);
                    puts("M");  
                    a5=1;
                    break;
                default:
                    lives--;
                    break;
            }
        if(a1==1 && a2==1 && a3==1 && a4==1 && a5==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
            puts("Sorry you lose the answer was:    RHYTHM\n\nRHYTHM = Movement or procedure with uniform or\npatterned recurrence of a beat, accent, or the like.");
                Beep(100,400);
                Beep(75,400);
        }            
        else
        {
            puts("Congratulations                                      \n\nRHYTHM = Movement or procedure with uniform or\npatterned recurrence of a beat, accent, or the like.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game6() // Crypt //
{
    gotoxy(x=1, y=5);
    puts("-----");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'c':
                    gotoxy(x=1, y=5);
                    puts("C");            
                     a1=1;
                     break;
                case 'C':
                    gotoxy(x=1, y=5);
                    puts("C");                    
                    a1=1;
                    break;
                case 'r':
                    gotoxy(x=2, y=5);
                    puts("R");                
                    a2=1;
                    break;
                case 'R':
                    gotoxy(x=2, y=5);
                    puts("R");    
                    a2=1;
                    break;        
                case 'y':
                    gotoxy(x=3, y=5);
                    puts("Y");                
                    a3=1;
                    break;
                case 'Y':
                    gotoxy(x=3, y=5);
                    puts("Y"); 
                    a3=1;
                    break;                   
                case 'p':
                    gotoxy(x=4, y=5);
                    puts("P");                  
                    a4=1;
                    break;
                case 'P':
                    gotoxy(x=4, y=5);
                    puts("P");
                    a4=1;
                    break;
                case 't':
                    gotoxy(x=5, y=5);
                    puts("T");                  
                    a5=1;
                    break;
                case 'T':
                    gotoxy(x=5, y=5);
                    puts("T");  
                    a5=1;
                    break;
                default:
                    lives--;
                    break;
            }
        if(a1==1 && a2==1 && a3==1 && a4==1 && a5==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
            puts("Sorry you lose the answer was:    CRYPT\n\nCRYPT = A subterranean chamber or vault, especially\none beneath the main floor of a church, used as a burial\nplace, a location for secret meetings, etc.\nA slender pit or recess, a small glandular cavity.");
                Beep(100,400);
                Beep(75,400);
        }            
        else
        {
            puts("Congratulations                                      \n\nCRYPT = A subterranean chamber or vault, especially\none beneath the main floor of a church, used as a burial\nplace, a location for secret meetings, etc.\nA slender pit or recess, a small glandular cavity.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game5() // Sphynx //
{
    gotoxy(x=1, y=5);
    puts("------");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 's':
                    gotoxy(x=1, y=5);
                    puts("S");            
                     a1=1;
                     break;
                case 'S':
                    gotoxy(x=1, y=5);
                    puts("S");                    
                    a1=1;
                    break;
                case 'p':
                    gotoxy(x=2, y=5);
                    puts("P");                
                    a2=1;
                    break;
                case 'P':
                    gotoxy(x=2, y=5);
                    puts("P");    
                    a2=1;
                    break;        
                case 'h':
                    gotoxy(x=3, y=5);
                    puts("H");                
                    a3=1;
                    break;
                case 'H':
                    gotoxy(x=3, y=5);
                    puts("H"); 
                    a3=1;
                    break;                   
                case 'y':
                    gotoxy(x=4, y=5);
                    puts("Y");                  
                    a4=1;
                    break;
                case 'Y':
                    gotoxy(x=4, y=5);
                    puts("Y");
                    a4=1;
                    break;
                case 'n':
                    gotoxy(x=5, y=5);
                    puts("N");                  
                    a5=1;
                    break;
                case 'N':
                    gotoxy(x=5, y=5);
                    puts("N");  
                    a5=1;
                    break;
                case 'x':
                    gotoxy(x=6, y=5);
                    puts("X");
                    a6=1;
                    break;
                case 'X':
                    gotoxy(x=6, y=5);
                    puts("X");
                    a6=1;
                    break;
                default:
                    lives--;
                    break;
            }
        if(a1==1 && a2==1 && a3==1 && a4==1 && a5==1 && a6==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
            puts("Sorry you lose the answer was:    SPHYNX\n\nSPHYNX = A breed of medium sized hairless cat with\nlarge ears and a long whiplike tail.");
                Beep(100,400);
                Beep(75,400);
        }            
        else
        {
            puts("Congratulations                                      \n\nSPHYNX = A breed of medium sized hairless cat with\nlarge ears and a long whiplike tail.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game4() // psychiatrist 12//
{
    gotoxy(x=1, y=5);
    puts("------------");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 's':
                    gotoxy(x=2, y=5);
                    puts("S");
                    gotoxy(x=11, y=5);
                    puts("S");            
                     a1=1;
                     break;
                case 'S':
                    gotoxy(x=2, y=5);
                    puts("S");
                    gotoxy(x=11, y=5);
                    puts("S");
                    a1=1;
                    break;
                case 'i':
                    gotoxy(x=6, y=5);
                    puts("I");
                    gotoxy(x=10, y=5);
                    puts("I");                
                    a2=1;
                    break;
                case 'I':
                    gotoxy(x=6, y=5);
                    puts("I");
                    gotoxy(x=10, y=5);
                    puts("I");  
                    a2=1;
                    break;        
                case 't':
                    gotoxy(x=8, y=5);
                    puts("T");
                    gotoxy(x=12, y=5);
                    puts("T");                
                    a3=1;
                    break;
                case 'T':
                    gotoxy(x=8, y=5);
                    puts("T");
                    gotoxy(x=12, y=5);
                    puts("T"); 
                    a3=1;
                    break;
                case 'p':
                    gotoxy(x=1, y=5);
                    puts("P");                  
                    a4=1;
                    break;
                case 'P':
                    gotoxy(x=1, y=5);
                    puts("P");
                    a4=1;
                    break;
                case 'y':
                    gotoxy(x=3, y=5);
                    puts("Y");                  
                    a5=1;
                    break;
                case 'Y':
                    gotoxy(x=3, y=5);
                    puts("Y");  
                    a5=1;
                    break;
                case 'c':
                    gotoxy(x=4, y=5);
                    puts("C");
                    a6=1;
                    break;
                case 'C':
                    gotoxy(x=4, y=5);
                    puts("C");
                    a6=1;
                    break;
                case 'h':
                    gotoxy(x=5, y=5);
                    puts("H");
                    a7=1;
                    break;
                case 'H':
                    gotoxy(x=5, y=5);
                    puts("H");
                    a7=1;
                    break;
                case 'a':
                    gotoxy(x=7, y=5);
                    puts("A");
                    a8=1;
                    break;
                case 'A':
                    gotoxy(x=7, y=5);
                    puts("A");
                    a8=1;
                    break;
                case 'r':
                    gotoxy(x=9, y=5);
                    puts("R");
                    a9=1;
                    break;
                case 'R':
                    gotoxy(x=9, y=5);
                    puts("R");
                    a9=1;
                    break;                  
                default:
                    lives--;
                    break;
            }
        if(a1==1 && a2==1 && a3==1 && a4==1 && a5==1 && a6==1 && a7==1 && a8==1 && a9==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
            puts("Sorry you lose the answer was:    PSYCHIATRIST\n\nPSYCHIATRIST = The practice or science of diagnosing\nand treating mental disorders.");
                Beep(100,400);
                Beep(75,400);
        }            
        else
        {
            puts("Congratulations                                      \n\nPSYCHIATRIST = The practice or science of diagnosing\nand treating mental disorders.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game3() //methylenedioxymethamphetamine 29//
{
    gotoxy(x=1, y=5);
    puts("-----------------------------");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'm':
                    gotoxy(x=1, y=5);
                    puts("M");
                    gotoxy(x=15, y=5);
                    puts("M");
                    gotoxy(x=20, y=5);
                    puts("M");
                    gotoxy(x=26, y=5);
                    puts("M");
                     a1=1;
                     break;
                case 'M':
                    gotoxy(x=1, y=5);
                    puts("M");
                    gotoxy(x=15, y=5);
                    puts("M");
                    gotoxy(x=20, y=5);
                    puts("M");
                    gotoxy(x=26, y=5);
                    puts("M");
                    a1=1;
                    break;
                case 'e':
                    gotoxy(x=2, y=5);
                    puts("E");
                    gotoxy(x=7, y=5);
                    puts("E");
                    gotoxy(x=9, y=5);
                    puts("E");
                    gotoxy(x=16, y=5);
                    puts("E");
                    gotoxy(x=23, y=5);
                    puts("E");
                    gotoxy(x=29, y=5);
                    puts("E");
                    a2=1;
                    break;
                case 'E':
                    gotoxy(x=2, y=5);
                    puts("E");
                    gotoxy(x=7, y=5);
                    puts("E");
                    gotoxy(x=9, y=5);
                    puts("E");
                    gotoxy(x=16, y=5);
                    puts("E");
                    gotoxy(x=23, y=5);
                    puts("E");
                    gotoxy(x=29, y=5);
                    puts("E");
                    a2=1;
                    break;        
                case 't':
                    gotoxy(x=3, y=5);
                    puts("T");
                    gotoxy(x=17, y=5);
                    puts("T");
                    gotoxy(x=24, y=5);
                    puts("T");
                    a3=1;
                    break;
                case 'T':
                    gotoxy(x=3, y=5);
                    puts("T");
                    gotoxy(x=17, y=5);
                    puts("T");
                    gotoxy(x=24, y=5);
                    puts("T");
                    a3=1;
                    break;
                case 'h':
                    gotoxy(x=4, y=5);
                    puts("H");
                    gotoxy(x=18, y=5);
                    puts("H");
                    gotoxy(x=22, y=5);
                    puts("H");
                    a4=1;
                    break;
                case 'H':
                    gotoxy(x=4, y=5);
                    puts("H");
                    gotoxy(x=18, y=5);
                    puts("H");
                    gotoxy(x=22, y=5);
                    puts("H");
                    a4=1;
                    break;
                case 'y':
                    gotoxy(x=5, y=5);
                    puts("Y");
                    gotoxy(x=14, y=5);
                    puts("Y");
                    a5=1;
                    break;
                case 'Y':
                    gotoxy(x=5, y=5);
                    puts("Y");
                    gotoxy(x=14, y=5);
                    puts("Y");
                    a5=1;
                    break;
                case 'l':
                    gotoxy(x=6, y=5);
                    puts("L");
                    a6=1;
                    break;
                case 'L':
                    gotoxy(x=6, y=5);
                    puts("L");
                    a6=1;
                    break;
                case 'n':
                    gotoxy(x=8, y=5);
                    puts("N");
                    gotoxy(x=28, y=5);
                    puts("N");
                    a7=1;
                    break;
                case 'N':
                    gotoxy(x=8, y=5);
                    puts("N");
                    gotoxy(x=28, y=5);
                    puts("N");
                    a7=1;
                    break;
                case 'd':
                    gotoxy(x=10, y=5);
                    puts("D");
                    a8=1;
                    break;
                case 'D':
                    gotoxy(x=10, y=5);
                    puts("D");
                    a8=1;
                    break;
                case 'i':
                    gotoxy(x=11, y=5);
                    puts("I");
                    gotoxy(x=27, y=5);
                    puts("I");
                    a9=1;
                    break;
                case 'I':
                   gotoxy(x=11, y=5);
                    puts("I");
                    gotoxy(x=27, y=5);
                    puts("I");
                    a9=1;
                    break;
                case 'o':
                    gotoxy(x=12, y=5);
                    puts("O");
                    a10=1;
                    break;
                case 'O':
                    gotoxy(x=12, y=5);
                    puts("O");
                    a10=1;
                    break;
                case 'x':
                    gotoxy(x=13, y=5);
                    puts("X");
                    a11=1;
                    break;
                case 'X':
                    gotoxy(x=13, y=5);
                    puts("X");
                    a11=1;
                    break;
                case 'a':
                    gotoxy(x=19, y=5);
                    puts("A");
                    gotoxy(x=25, y=5);
                    puts("A");
                    a12=1;
                    break;
                case 'A':
                    gotoxy(x=19, y=5);
                    puts("A");
                    gotoxy(x=25, y=5);
                    puts("A");
                    a12=1;
                    break;
                case 'p':
                    gotoxy(x=21, y=5);
                    puts("P");
                    a13=1;
                    break;
                case 'P':
                    gotoxy(x=21, y=5);
                    puts("P");
                    a13=1;
                    break;

                default:
                    lives--;
                    break;
            }
        if(a1==1 && a2==1 && a3==1 && a4==1 && a5==1 && a6==1 && a7==1 && a8==1 && a9==1 && a10==1 && a11==1 && a12==1 && a13==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
            puts("Sorry you lose the answer was:    METHYLENEDIOXYMETHAMPHETAMINE\n\nMETHYLENEDIOXYMETHAMPHETAMINE = A stimulant drug that is\nchemically related to mescaline and amphetamine and is used\nillicitly for its euphoric and hallucinogenic effects.\nIt was formerly used in psychotherapy but in 1985 it was\ndeclared illegal in the United States.");
                Beep(100,400);
                Beep(75,400);
        }            
        else
        {
            puts("Congratulations                                      \n\nMETHYLENEDIOXYMETHAMPHETAMINE = A stimulant drug that is\nchemically related to mescaline and amphetamine and is used\nillicitly for its euphoric and hallucinogenic effects.\nIt was formerly used in psychotherapy but in 1985 it was\ndeclared illegal in the United States.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game2() //TETRAHYDROCANNABINOL 20  //
{
    gotoxy(x=1, y=5);
    puts("--------------------");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 't':
                    gotoxy(x=1, y=5);
                    puts("T");
                    gotoxy(x=3, y=5);
                    puts("T");
                     a1=1;
                     break;
                case 'T':
                    gotoxy(x=1, y=5);
                    puts("T");
                    gotoxy(x=3, y=5);
                    puts("T");
                    a1=1;
                    break;
                case 'e':
                    gotoxy(x=2, y=5);
                    puts("E");
                    a2=1;
                    break;
                case 'E':
                    gotoxy(x=2, y=5);
                    puts("E");
                    a2=1;
                    break;
                case 'r':
                    gotoxy(x=4, y=5);
                    puts("R");
                    gotoxy(x=9, y=5);
                    puts("R");
                    a3=1;
                    break;
                case 'R':
                    gotoxy(x=4, y=5);
                    puts("R");
                    gotoxy(x=9, y=5);
                    puts("R");
                    a3=1;
                    break;
                case 'a':
                    gotoxy(x=5, y=5);
                    puts("A");
                    gotoxy(x=12, y=5);
                    puts("A");
                    gotoxy(x=15, y=5);
                    puts("A");
                    a4=1;
                    break;
                case 'A':
                    gotoxy(x=5, y=5);
                    puts("A");
                    gotoxy(x=12, y=5);
                    puts("A");
                    gotoxy(x=15, y=5);
                    puts("A");
                    a4=1;
                    break;
                case 'h':
                    gotoxy(x=6, y=5);
                    puts("H");
                    a5=1;
                    break;
                case 'H':
                    gotoxy(x=6, y=5);
                    puts("H");
                    a5=1;
                    break;
                case 'y':
                    gotoxy(x=7, y=5);
                    puts("Y");
                    a6=1;
                    break;
                case 'Y':
                    gotoxy(x=7, y=5);
                    puts("Y");
                    a6=1;
                    break;
                case 'd':
                    gotoxy(x=8, y=5);
                    puts("D");
                    a7=1;
                    break;
                case 'D':
                    gotoxy(x=8, y=5);
                    puts("D");
                    a7=1;
                    break;
                case 'o':
                    gotoxy(x=10, y=5);
                    puts("O");
                    gotoxy(x=19, y=5);
                    puts("O");
                    a8=1;
                    break;
                case 'O':
                    gotoxy(x=10, y=5);
                    puts("O");
                    gotoxy(x=19, y=5);
                    puts("O");
                    a8=1;
                    break;
                case 'c':
                    gotoxy(x=11, y=5);
                    puts("C");
                    a9=1;
                    break;
                case 'C':
                    gotoxy(x=11, y=5);
                    puts("C");
                    a9=1;
                    break;
                case 'n':
                    gotoxy(x=13, y=5);
                    puts("N");
                    gotoxy(x=14, y=5);
                    puts("N");
                    gotoxy(x=18, y=5);
                    puts("N");
                    a10=1;
                    break;
                case 'N':
                    gotoxy(x=13, y=5);
                    puts("N");
                    gotoxy(x=14, y=5);
                    puts("N");
                    gotoxy(x=18, y=5);
                    puts("N");
                    a10=1;
                    break;
                case 'b':
                    gotoxy(x=16, y=5);
                    puts("B");
                    a11=1;
                    break;
                case 'B':
                    gotoxy(x=16, y=5);
                    puts("B");
                    a11=1;
                    break;
                case 'i':
                    gotoxy(x=17, y=5);
                    puts("I");
                    a12=1;
                    break;
                case 'I':
                    gotoxy(x=17, y=5);
                    puts("I");
                    a12=1;
                    break;
                case 'l':
                    gotoxy(x=20, y=5);
                    puts("L");
                    a13=1;
                    break;
                case 'L':
                    gotoxy(x=20, y=5);
                    puts("L");
                    a13=1;
                    break;
                default:
                    lives--;
                    break;
            }
        if(a1==1 && a2==1 && a3==1 && a4==1 && a5==1 && a6==1 && a7==1 && a8==1 && a9==1 && a10==1 && a11==1 && a12==1 && a13==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0){
            puts("Sorry you lose the answer was:    TETRAHYDROCANNABINOL\n\nTETRAHYDROCANNABINOL = A compound, C21  H30  O\nthat is the physiologically active component in cannabis\npreparations (marijuana, hashish, etc)\nDerived from the Indian hemp plant or produced synthetically.");
                Beep(100,400);
                Beep(75,400);
        }            
        else
        {
            puts("Congratulations                                      \n\nTETRAHYDROCANNABINOL = A compound, C21  H30  O\nthat is the physiologically active component in cannabis\npreparations (marijuana, hashish, etc)\nDerived from the Indian hemp plant or produced synthetically.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}

game1() //Monophlorophosphate 19  //
{
    gotoxy(x=1, y=5);
    puts("-------------------");    
    do
    {
        gotoxy(x=1, y=8);
        printf("Lives: %d ", lives);
        gotoxy(xx, y=10);
        xx++;
            pl=letter();
            switch(pl)
            {
                case 'm':
                    gotoxy(x=1, y=5);
                    puts("M");
                     a1=1;
                     break;
                case 'M':
                    gotoxy(x=1, y=5);
                    puts("M");
                    a1=1;
                    break;
                case 'o':
                    gotoxy(x=2, y=5);
                    puts("O");
                    gotoxy(x=4, y=5);
                    puts("O");
                    gotoxy(x=8);
                    puts("O");
                    gotoxy(x=10, y=5);
                    puts("O");
                    gotoxy(x=13, y=5);
                    puts("O");
                    a2=1;
                    break;
                case 'O':
                    gotoxy(x=2, y=5);
                    puts("O");
                    gotoxy(x=4, y=5);
                    puts("O");
                    gotoxy(x=8);
                    puts("O");
                    gotoxy(x=10, y=5);
                    puts("O");
                    gotoxy(x=13, y=5);
                    puts("O");
                    a2=1;
                    break;
                case 'n':
                    gotoxy(x=3, y=5);
                    puts("N");
                    a3=1;
                    break;
                case 'N':
                    gotoxy(x=3, y=5);
                    puts("N");
                    a3=1;
                    break;
                case 'p':
                    gotoxy(x=5, y=5);
                    puts("P");
                    gotoxy(x=11, y=5);
                    puts("P");
                    gotoxy(x=15, y=5);
                    puts("P");
                    a4=1;
                    break;
                case 'P':
                    gotoxy(x=5, y=5);
                    puts("P");
                    gotoxy(x=11, y=5);
                    puts("P");
                    gotoxy(x=15, y=5);
                    puts("P");
                    a4=1;
                    break;
                case 'h':
                    gotoxy(x=6, y=5);
                    puts("H");
                    gotoxy(x=12, y=5);
                    puts("H");
                    gotoxy(x=16, y=5);
                    puts("H");
                    a5=1;
                    break;
                case 'H':
                    gotoxy(x=6, y=5);
                    puts("H");
                    gotoxy(x=12, y=5);
                    puts("H");
                    gotoxy(x=16, y=5);
                    puts("H");
                    a5=1;
                    break;
                case 'l':
                    gotoxy(x=7, y=5);
                    puts("L");
                    a6=1;
                    break;
                case 'L':
                    gotoxy(x=7, y=5);
                    puts("L");
                    a6=1;
                    break;
                case 'r':
                    gotoxy(x=9, y=5);
                    puts("R");
                    a7=1;
                    break;
                case 'R':
                    gotoxy(x=9, y=5);
                    puts("R");
                    a7=1;
                    break;
                case 's':
                    gotoxy(x=14, y=5);
                    puts("S");
                    a8=1;
                    break;
                case 'S':
                    gotoxy(x=14, y=5);
                    puts("S");
                    a8=1;
                    break;
                case 'a':
                    gotoxy(x=17, y=5);
                    puts("A");
                    a9=1;
                    break;
                case 'A':
                    gotoxy(x=17, y=5);
                    puts("A");
                    a9=1;
                    break;
                case 't':
                    gotoxy(x=18, y=5);
                    puts("T");
                    a10=1;
                    break;
                case 'T':
                    gotoxy(x=18, y=5);
                    puts("T");
                    a10=1;
                    break;
                case 'e':
                    gotoxy(x=19, y=5);
                    puts("E");
                    a11=1;
                    break;
                case 'E':
                    gotoxy(x=19, y=5);
                    puts("E");
                    a11=1;
                    break;
                default:
                    lives--;
                    break;
            }
        if(a1==1 && a2==1 && a3==1 && a4==1 && a5==1 && a6==1 && a7==1 && a8==1 && a9==1 && a10==1 && a11==1)
            counter=1;
        }while(lives>0 && counter==0);
        gotoxy(x=1, y=10);
        if(lives==0)
        {
            puts("Sorry you lose the answer was:    MONOPHLOROPHOSPHATE\n\nMONOFLUOROPHOSPHATE = Fluorophosphates are compounds in\nwhich fluorine forms a covalent bond to phosphorus.\nchemical compound used in toothpaste.");
                Beep(100,400);
                Beep(75,400);
        }            
        else
        {
            puts("Congratulations                                      \n\nMONOFLUOROPHOSPHATE = Fluorophosphates are compounds in\nwhich fluorine forms a covalent bond to phosphorus.\nchemical compound used in toothpaste.");
            pscore++;
            Beep(300,200);
            Beep(500,600);
        }
        puts("\n\nPress any key...");
        getch();
}
    

mains()
{
    xx=1, x=0, y=0, counter=0, lives=11, a1=0, a2=0, a3=0, a4=0, a5=0, a6=0, a7=0, a8=0, a9=0, a10=0, a11=0;
    a12=0, a13=0, a14=0, a15=0, a16=0, a17=0, a18=0, a19=0, a20=0;
    
    pgame++;
    
    system("cls");
    puts("HANGMAN");
    puts("\n\nPress any key...");
    getch();
    system("cls");
    printf("HANGMAN   Level 1   Game %d    Player Score %d ", pgame, pscore);
}

mains2()
{
    xx=1, x=0, y=0, counter=0, lives=11, a1=0, a2=0, a3=0, a4=0, a5=0, a6=0, a7=0, a8=0, a9=0, a10=0, a11=0;
    a12=0, a13=0, a14=0, a15=0, a16=0, a17=0, a18=0, a19=0, a20=0;
    
    pgame2++;
    
    system("cls");
    puts("HANGMAN");
    puts("\n\nPress any key...");
    getch();
    system("cls");
    printf("HANGMAN   Level 2   Game %d    Player Score %d ", pgame2, pscore);
}
    

gotoxy( int x, int y ) 
{ 
    COORD c; 

      c.X = x - 1 ; 
      c.Y = y - 1 ; 

      SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), c ) ; 
}

letter()
{
    char a[1];
    int i=0;
    
    do
    {
        a[0]=getch();
        if(a[0] >= 'a' && a[0] <='z' || a[0] >= 'A' && a[0] <='Z')
        {
            i=1;
            printf("%c", a[0]);
            xx++;
        }
    }while(i == 0);
    return(a[0]);
}


Was This Post Helpful? 0
  • +
  • -

#4 Cenron  Icon User is offline

  • New D.I.C Head

Reputation: 6
  • View blog
  • Posts: 13
  • Joined: 23-May 12

Re: Embarrassing hangman code

Posted 18 June 2013 - 03:55 PM

Oh man the patience required to write something like this. I don't think I could do it with all that repetition.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1