Hangman

The Hangman Service provides helpers for mediating a distributed game of hangman.

RPCS

Hangman.getCurrentlyKnownWord()

Get current word for the game

Returns: String (String) - Current word in use

Hangman.getWrongCount()

Get number of wrong guesses made

Returns: Integer (Integer) - Number of wrong guesses

Hangman.guess(letter: BoundedString<1, 1>)

Make a guess in the game

Arguments:

Hangman.isWordGuessed()

Get if word has been guessed

Returns: Boolean (Boolean) - State of word

Hangman.setWord(word: String)

Set current word for the game

Arguments:

  • word: String (String) - New word to use