| play | R Documentation |
Functions used by students to move through the virtual escape room.
play()
submit(answer)
hint()
status()
reset_game(player = NULL)
list_rooms()
answer |
The answer to check for the current room. |
player |
Character scalar. Defaults to the active player. |
play(), hint(), status(), and reset_game() return useful game objects invisibly. submit() invisibly returns whether the answer was correct. list_rooms() returns a data frame with room IDs, modules, titles, and learning goals.
head(list_rooms())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.