HangmanUI is a Java Interface that describes the behavior of a user interface for the solitaire Hangman game. The user interface allows the player to guess letters and displays the correctly guessed letters.
Method Summary | |
void |
display()
Start the display. |
void |
playAgain()
Handle end of game, asking if the player wants another game If yes, start a new game, otherwise exit. |
void |
setBoard(Board theBoard)
Save a reference to the instance of the Board. |
void |
setParent(HangmanLogic parent)
Save a reference to the parent |
void |
showBoard()
Display the current state of the board. |
void |
showLose()
Display that the player lost the game. |
void |
showWin()
Display that the player won the game. |
Method Detail |
public void display()
public void playAgain()
public void setBoard(Board theBoard)
public void setParent(HangmanLogic parent)
public void showBoard()
public void showLose()
public void showWin()