General

Gems

Web Based

LetterPress Is Not As Good As Boggle

Finds the best words to play in letterpress

There is an iPhone game called letterpress that all of my friends were playing. It's kind of like Boggle, but not as good, hence when I wrote a solver for it, I named it Letter Press Is Not As Good As Boggle.

This library allows you to make awesome plays like:

example of an awesome play

Here is an example of how to use it:

require 'letter_press_is_not_as_good_as_boggle'

LetterPressIsNotAsGoodAsBoggle do
  board %w[h z e o f
 h p h y i
 h w e b r
 x z u g o
 b i o g f]

  guessed %w[groupie
 hogger]

  # get the list of all known words that can be made on the board
  # unless hey have already been guessed
  words.each { |word| puts word }
end

Which will output:

he
go
up
[...]
highboy
highbrow
febrifuge

As always, the code is on github.