SimpleHangman ============= The SimpleHangman Service provides RPCs for playing single player hangman. The service will choose a word for the player to guess using the given RPCs. .. toctree:: :maxdepth: 2 :titlesonly: :caption: RPC Categories RPCS ---- .. function:: SimpleHangman.getCurrentlyKnownWord() Get the current word with where unknown letters are replaced with "_". **Returns:** ``String`` (`String `__) - current word with blanks .. function:: SimpleHangman.getWrongCount() Get the current number of incorrect guesses. **Returns:** ``Integer`` (`Integer `__) - number of wrong guesses .. function:: SimpleHangman.guess(letter: String) Guess a letter in the current word. **Arguments:** - ``letter: String`` (`String `__) .. function:: SimpleHangman.isWordGuessed() Check if the current word has been guessed correctly. **Returns:** ``Boolean`` (`Boolean `__) - ``true`` if word was guessed correctly .. function:: SimpleHangman.restart(word: String?) Restart the current game. **Arguments:** - ``word: String?`` (`String `__) - New word to guess **Returns:** ``Boolean`` (`Boolean `__) - ``true`` on successful restart