This is the simplest set of requirements I could come up with for Hangman. Please let me know if you see something that is missing or incorrect.
———————————-
Welcome Screen:
- Display “Play” button
- If user selects “Play” button go to Game Play Screen
- Display “Info” icon
- If user selects “Info” icon flip to show info page
Info Screen:
- Display credits
- Display link to GTi website
- Solicit feedback
- Display “Done” button
Game Play Screen
- To start a new game the system selects a text string (word or phrase) from the string library and displays blanks for each letter. Spaces are shown
- Display the alphabet as selectable letters
- If the user selects a letter the system checks to see if that letter is in the text string.
- If the letter is in the text string show it in the proper location(s) in the string
- If the letter is not in the text string draw the next portion of the hangman
- Show that the letter has been guessed and don’t allow user to select that letter again during the game
- Before proceeding
- check to see if the whole text string has been revealed. If yes, tell user “You Won!” and show “Play again?” button.
- If user presses “Play again?” button start from beginning.
- check to see if the whole hangman has been drawn. If yes, tell user “Too bad.” and show “Play again?” button.
- If user presses “Play again?” button start from beginning.
- check to see if the whole text string has been revealed. If yes, tell user “You Won!” and show “Play again?” button.
- If game has not ended then continue by prompting user to select the next letter.
