Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

It finds words with the letters you enter.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 bookworm.rb
Octocat-spinner-32 el-GR.dic
Octocat-spinner-32 en-US.dic
Octocat-spinner-32 initializer.rb
Octocat-spinner-32 old_bookworm.rb
Octocat-spinner-32 solver.rb
Octocat-spinner-32 wordmatch.sql
README.md

Wordmatch

Description

It finds words with the letters that you enter.

  • solver.rb is for games like hangman, where you know some letters and you want to find the rest.
  • bookworm.rb is for games like scrabble or bookworm adventures (http://www.popcap.com/games/bookworm-adventures2/pc which is the actual reason I created all this), you enter all the letters and it finds all the possible combination it can.

Usage

  1. Create a database with your credentials and put them in the solver.rb (your username and password)
  2. Insert the words with mysql -u your_username -pyour_password wordmatch < wordmatch.sql
  3. After it finishes, type ruby solver.rb letters or ruby bookworm.rb letters and it will play accordingly

Future

It takes approximately 25-30 seconds to match the words so it isn't so efficient. I'd like to make it faster.

I'd love to hear your comments about. Thank you!

Something went wrong with that request. Please try again.