With the Rewind theme in mind, we were inspired to create a simple classic game.

What it does

You will have 6 attempts to guess a correct letter of a mystery word. If your guess is incorrect, a body part will be added to the hangman. If you guess a correct letter, a body part will not be added. The game is over when you have correctly guessed the word or the hangman is completed. There are sample words given in hangman.txt that go with the Hackathon theme, Rewind. They are our favorite shows, mostly cartoons, that are no longer on the air. If you wish to add more words, please add the word on a new line in the hangman.txt file. Restrictions: The program is not equipped to handle words with spaces or numbers (i.e. Air Plane) so please make sure the added words contain only the letters A thru Z!

How we built it

Program is written in C++. We used Discord to communicate, GitHub to collaborate, and to compile and test.

Challenges we ran into

Figuring out how to display the correct letters that were already guessed by the user. Figuring out why we couldn't read from a ifstream object twice.

Accomplishments that we're proud of

Getting the project to work! We put a lot of time and effort into input validation.

What we learned

We learned a lot about collaborating and how important being able to effectively communicate your ideas and logic is.

What's next for Hackathon Hangman

Next we would like the program to be able to handle multiple words like Air Plane.

Built With

Share this project: