- Notifications
You must be signed in to change notification settings - Fork1
dcomtois/Boggler
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Added support for Finnish language ("fi")
First, install the package:
library(devtools)install_github("jtuimala/Boggler")
Next, just use one ofPlay.Boggle()
orSolve.Boggle()
functions, specifying the language as argument. That's it!
When you usePlay.Boggle()
, the letters are shuffled and you get a plot looking like this one:
Behind the scenes, letters are connected via an igraph:
> Play.Boggle("fr")# use "en" for EnglishVeuillezpatienterpendantlarecherchedessolutions...1:ait+1pt(s) (tempsrestant:99secs)1:
At the end, you get your score, as well as the maximum possible score.
To get the list of all possible words, just proceed like this:
>solutions<- Play.Boggle()...> head(solutions$solutions)wordpts1ada12ace13des14dec15est16sec1> tail(solutions$solutions)wordpts81absent382destine583dentine584sentine585accents586centaine11
Or, if you forgot to assign the results to a variable:
> Play.Boggle()...> tail(.Last.value$solutions)wordpts81absent382destine583dentine584sentine585accents586centaine11