TwentyQuestions =============== The TwentyQuestions Service aids in the creation of a multiplayer game of twenty questions. .. toctree:: :maxdepth: 2 :titlesonly: :caption: RPC Categories RPCS ---- .. function:: TwentyQuestions.answer(answer: String) Answer a yes or no question about the secret word or phrase. **Arguments:** - ``answer: String`` (`String `__) - yes or no response to previous question .. function:: TwentyQuestions.gameStarted() Check if the game has been started. **Returns:** ``Boolean`` (`Boolean `__) - ``true`` if the game has started .. function:: TwentyQuestions.guess(guess: String) Guess the word or phrase. **Arguments:** - ``guess: String`` (`String `__) - word or phrase to guess **Returns:** ``Boolean`` (`Boolean `__) - ``true`` if the guess was correct, otherwise ``false`` .. function:: TwentyQuestions.restart() Restart the game. .. function:: TwentyQuestions.start(answer: String) Start a new game of twenty questions. **Arguments:** - ``answer: String`` (`String `__) - The word or phrase to guess **Returns:** ``Boolean`` (`Boolean `__) - ``true`` on successful start