https://github.com/ahmadjajja/hangman_search_game_in_c_language
https://github.com/ahmadjajja/hangman_search_game_in_c_language
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ahmadjajja/hangman_search_game_in_c_language
- Owner: Ahmadjajja
- Created: 2022-10-14T06:26:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-26T09:48:58.000Z (over 2 years ago)
- Last Synced: 2025-01-21T21:33:46.104Z (9 months ago)
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HANGMAN_SEARCH_GAME_IN_C_Language
```C
#include#include
using namespace std;
int main()
{
cout<<"_____HANGMAN SEARCH GAME_____\n";
cout<<"_You Can play Three times this game_\n\n";
cout<<"~~~Dictionary of Words~~~\n";
cout<<"Pink\nRed\nYellow\nWhite\nBrown\nBlack\nBlue\nOrange\n\n";
string x,m;
int w=0,l=0,at=0;
a:
cout<<"Here is a word from dictionary with all hidden characters,\nNow you have to guess the hidden characters:\n";
cin>>x;
at++;
if(x=="Brown")
{
cout<<"\n\nCongratulations!you successfully guessed the hidden characters\n";
w++;
}else
{
cout<<"\n\nYou failed,Good luck for next time\n\n";
l++;
}
if(at<3)
{
cout<<"Are you want to play one more time?\n\nPress: ~YES~ for playing\npress: ~NO~ for not playing!!";
cin>>m;
if(m=="YES")
goto a;
}
cout<<"you win the game "<