Skip to content

Confidenceman02/Scrabble-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motivation

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.

alt text

This is represented visually using the tty toolkit.

Drawing

Functionality

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages