Packages

p

o1

peeveli

package peeveli

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package gui

Type Members

  1. class GameState extends AnyRef

    Each instance of class GameState represents a single state within the Peeveli variant of Hangman: What does the (partially visible) target word look like to the guesser? How many incorrect guesses can the guesser still make? Which guesses have already been made? Moreover, our dishonest hangman needs an additional piece of information: Which words are still credible solutions given the earlier guesses?

    Each instance of class GameState represents a single state within the Peeveli variant of Hangman: What does the (partially visible) target word look like to the guesser? How many incorrect guesses can the guesser still make? Which guesses have already been made? Moreover, our dishonest hangman needs an additional piece of information: Which words are still credible solutions given the earlier guesses?

    Chapter 9.3 of the ebook has a detailed discussion of the internal logic of the Peeveli game.

    While a player plays a game of Peeveli, the game will move from one state to another. Even so, each GameState object is immutable. Each successive state is represented by a new GameState object, which is generated by calling the current state's guessLetter method.

Value Members

  1. object GameState

    This companion object just provides a single constant.

    This companion object just provides a single constant.

    See also

    class GameState

Ungrouped