Interface ISessionController


public interface ISessionController

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

playGames

public void playGames()
Play as many games as the user wishes, displaying game status and overall status along the way.


askAboutContinuing

public boolean askAboutContinuing()
Ask the user whether another game is to be played.

Returns:
true iff another game should be played.

display

public void display()
Display complete status on a GWindow. Each call to this method should result in complete status being displayed: overall won/loss count, current games status (including which letters have been guesses, how many chances are remaining, the "hanged man" picture or its equivalent, etc.).