HANGMAN- Software/ Hardware Integration Project
Download
Report
Transcript HANGMAN- Software/ Hardware Integration Project
HANGMAN- Software/ Hardware Integration Project
• Idea was to design a working C++
program to play a Hangman word
guessing game
• Program had to be able to show how long
the word was, take in letters guessed,
recognize if the letter was right or wrong,
recognize a repeated letter, and know
what to do when the word was guessed
• Initializing strings, characters, and words
• Had to use a 26 character array because 26
•
characters in the alphabet
Needed another file to put the guess words into
and have the program call each word when
needed (Test.dat)
This is where I made the inputted letter capitalized and shows the user
the letters they already tried to guess or a repeated guess
This is what makes the program not case sensative so you don’t have
to worry about capitalization
• Deals with the right or wrong guesses
• Keeps track of which case to use
• Shows what happens when you win and guess
•
the word
Gives you the option to play again with a new
word or to end the program
• Hangman stages
• Switch command
• Cases
Problems/Glitches
• Needed help on how to call the words
from another file. Thanks to Frank
Racioppi
• Figure out how to make it randomly
choose a word
• Haven’t had a C++ class in 1 ½ years