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:
letter: BoundedString<1, 1>
(BoundedString) - Letter to guess