| |
|
| java.lang.Object model.Word
Word | public class Word implements Serializable(Code) | | Model for a word in the game of Game.
author: Jonathan Locke author: Geert Bevin |
Word | public Word(String word)(Code) | | Constructor
Parameters: word - The word |
asString | public String asString(boolean hideUnguessed)(Code) | | Parameters: hideUnguessed - True if unguessed letters should be hidden This word as a String |
guess | public boolean guess(Letter letter)(Code) | | Parameters: letter - The letter to guess True if guess was correct |
isGuessed | public boolean isGuessed()(Code) | | True if the word has been guessed |
|
|
|