Skip to content

S21_HangmanGUI_Medium

William O Simpson edited this page May 3, 2020 · 4 revisions

Portfolio Home Page

Problem Statement

The GUI must include the following:

  • A place to enter the word to be guessed. This needs to be hidden in some way so the guesser cannot see it.
  • The number of guesses the guesser has left
  • The incorrect letters guessed so far
  • Place for the guesser to enter in letters
  • Readout for displaying the number of characters in the word and which ones the guesser has guessed.
  • Indication of when the game is over.
  • The GUI must progressively draw the hangman diagram as the guesser guesses wrong letters. You must use either the Java Graphics or Graphics 2D class (see Chapter 13 in the 10th edition). At a minimum, this needs to be a simple stick diagram as shown here.

User Documentation

Developer Documentation

UML Diagram:

JavaDocs

The java documents are served from a local web server on this machine. To start the web server, navigate to the directory immediately above where the source code is checked out (i.e. ~/git ) and then use "python -m SimpleHTTPServer" in that directory.

cd ~/git
python -m SimpleHTTPServer&

Note: if you are running python 3 (which you can check via opening a terminal and typing: python --version), then the command is:

python3 -m http.server

Click Here to View JavaDocs

Source Code

Link to the source code