intinig / word_cheat

Single word anagrams engine

This URL has Read+Write access

name age message
file .gitignore Tue Oct 28 15:41:20 -0700 2008 add gitignore, refactor get_anagrams, one pass [Giovanni Intini]
file README Wed Oct 29 01:28:36 -0700 2008 added readme [Giovanni Intini]
file cheat.rb Tue Mar 10 02:26:57 -0700 2009 added 4l dictionary and made it default [Giovanni Intini]
directory lib/ Tue Oct 28 15:41:20 -0700 2008 add gitignore, refactor get_anagrams, one pass [Giovanni Intini]
directory resources/ Tue Mar 10 02:26:57 -0700 2009 added 4l dictionary and made it default [Giovanni Intini]
directory test/ Tue Oct 28 13:34:42 -0700 2008 initial commit [Giovanni Intini]
README
WORD CHEAT
by Giovanni Intini <giovanni@mikamai.com>

This is a simple anagrams tool that someone could use to cheat at word games, like Word Challenge on Facebook ]:)

Usage is quite simple, drop a wordlist in resources/ and customize cheat.rb to load that word list. Calling cheat.rb 
with the original word as an argument (i.e. $ cheat.rb wordtoanagram) will ouput to STDOUT a list of the words that are 
anagrams of the original word or of a subset of its letters.

Test coverage is at 100% and the solution is quite clever (IMHO :)), feel free to contribute or do whatever you wish 
with it.