|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Methods for the control of a series of Hangman games and for
display of the results.
There should be a constructor that takes one String argument: the
name of a text file containing a "Hangman dictionary", i.e., a
set of words from which the program can choose a word to be
guessed for each game.
There should a standard
public static void main(String[] args){...}
Running main should cause a full session (series of games)
of Hangman to be played. The parameter args should not be used.
This session should start without requiring any initial input
from the user (of course, once a game starts, the user will be
prompted for guesses, etc.)
Method Summary | |
boolean |
askAboutContinuing()
Ask the user whether another game is to be played. |
void |
display()
Display complete status on a GWindow. |
void |
playGames()
Play as many games as the user wishes, displaying game status and overall status along the way. |
Method Detail |
public void playGames()
public boolean askAboutContinuing()
public void display()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |