Sha256: 9bd02026d1d2fa6d1ad1e2b578b87801db453eca4466a1d444495fdb6bcfd0fc
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
require 'letter_press_is_not_as_good_as_boggle' words = LetterPressIsNotAsGoodAsBoggle do board %w[o y c z i s e m x k z i s v s w e a v o d d f k a] guesses %w[kamikaze mocked disavowed kiddies mocked miscoded wifes coveys amazed admixes] end def score(word, targets) (targets - word.chars.to_a).size end words.sort_by { |word| [-score(word, %w[z]), word.size] } .each { |word| puts word }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
letter_press_is_not_as_good_as_boggle-1.0.1 | example.rb |