print_hint_list()
function to print hints while playing, including both first two letters and first three lettersprint_hint_list()
and print_answers()
into exported functions that can be called to check on outside gamescreate_game()
in the play_game()
functionrestart = TRUE
argument for play_game()
has_pangram()
for manual call, so that it can be used with a single string of characters (e.g., has_pangram("jutis")
rather than only has_pangram(c("j", "u", "t", "i", "s"))
)num_letters == nchar(game_letters)
; it should only be if num_letters > nchar(game_letters)
bench::mark()
suggests this slightly reduces the time for creating a new game, and substantially reduces the amount of garbage collection that R needs to doAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.