- Added a
print_hint_list()
function to print hints while playing, including both first two letters and first three letters - Made
print_hint_list()
andprint_answers()
into exported functions that can be called to check on outside games
- Included full parameters for
create_game()
in theplay_game()
function - Added {pkgdown} website to github pages
- Stopped score from incrementing when you guess the same thing again
- Fixed
restart = TRUE
argument forplay_game()
- Fix
has_pangram()
for manual call, so that it can be used with a single string of characters (e.g.,has_pangram("jutis")
rather than onlyhas_pangram(c("j", "u", "t", "i", "s"))
)
- Included option to specify the "central" letter in creating a game
- Fixed bug where a warning would be posted if
num_letters == nchar(game_letters)
; it should only be ifnum_letters > nchar(game_letters)
- Updated function to find pangram so that it uses regular expressions first and then loops after; microbenchmarking using
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 do
- Pushed working package to github