As a dedicated scrabble player myself I decided to give the user the ability to score a word by the letter values and an actual Scrabble 15 x 15 grid like the one below.
This is represented visually using the tty toolkit.
Install Dependencies
> gem install tty
To initiate a game
> cd lib
> ruby gamePrompt
The user is given two options
> Score word
and
> Score word with Scrabble grid
> Score Word
will let the user input a word and a score will be returned based on scores for each letter in the word.
e.g.
> cabbage => 14
In > Score word with Scrabble grid
the user inputs a word, a direction(ACROSS, DOWN) and a starting position(A1).
This will allow the word to be scored with any multipliers the word should accrue based on a official Scrabble grid.
> hooroo ACROSS A1 => 30
> hooroo DOWN A2 => 30