A C D G H I M P R T U W

A

askAboutContinuing() - Method in interface ISessionController
Ask the user whether another game is to be played.
askUserForGuess() - Method in interface IGameController
Asks the user to enter the next guessed character.

C

chooseWord() - Method in class HangmanDictionary
Pick a word which hasn't been chosen recently.
chooseWord() - Method in interface IHangmanDictionary
Choose a word suitable for the game.

D

display() - Method in interface ISessionController
Display complete status on a GWindow.

G

getCurrentWordGuess() - Method in interface IHangmanWord
Tells the word as a string, the same length and characters as the full correct correct answer, except that unguessed positions are marked as such with a special character (such as '_').
getGuessedLetters() - Method in interface IGameController
Tells which letters have been guessed (whether right or wrong), compressed together into a string.
getNumGuessesRemaining() - Method in interface IGameController
Tells how many guess are remaining in the current game.
getWord() - Method in interface IHangmanWord
Tells the word as a simple string; this is the "dictionary" form of the full word as the players think of it.

H

HangmanDictionary - class HangmanDictionary.
A source of words for the game of Hangman.
HangmanDictionary(String) - Constructor for class HangmanDictionary
Create a dictionary of Hangman words from a given file; if the file cannot be opened, a small built-in default set of words is used.

I

IGameController - interface IGameController.
Controller for a single game of Hangman.
IHangmanDictionary - interface IHangmanDictionary.
A source of words for the game of Hangman.
IHangmanWord - interface IHangmanWord.
A class representing a "word in play", that is, the word which is being guessed, along with status of which characters of it have been guessed (correctly or otherwise), etc.
ISessionController - interface ISessionController.
Methods for the control of a series of Hangman games and for display of the results.
isLegalWord(String) - Static method in class HangmanDictionary
Determine if the given string is a valid word for the game.

M

MAX_WORD_LENGTH - Static variable in class HangmanDictionary
Longest allowable word.
MIN_WORD_LENGTH - Static variable in class HangmanDictionary
Shortest allowable word.

P

playGame(IHangmanWord) - Method in interface IGameController
Fully plays one game.
playGames() - Method in interface ISessionController
Play as many games as the user wishes, displaying game status and overall status along the way.

R

recordCharacterGuess(char) - Method in interface IHangmanWord
Takes note of the fact that another character has been guessed.
remainingUnguessedChars() - Method in interface IHangmanWord
Tells how many character positions of the word are still unguessed.

T

TestPreTurnIn - class TestPreTurnIn.
This file should be compiled before you turn in your .java files.
TestPreTurnIn() - Constructor for class TestPreTurnIn
 
TestSetup - class TestSetup.
A little class to see if your Hangman starter files are installed correctly.
TestSetup() - Constructor for class TestSetup
 

U

UNGUESSED_POSITION_MARKER - Static variable in interface IHangmanWord
A character used to indicate unguessed positions of a word.

W

WORD_DELIMITER - Static variable in class HangmanDictionary
Delimiter (regular expression) for separating words on the input file.
WORD_MATCH_PATTERN - Static variable in class HangmanDictionary
Pattern (regular expression) used to extract candidate words on the input.

A C D G H I M P R T U W