Socket
Book a DemoInstallSign in
Socket

scrabble-board

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrabble-board

Query a standard scrabble board. Based on the 2000 J.W.Spear & Sons PLC board.

latest
npmnpm
Version
0.2.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

##Scrabble-board

#Query a standard scrabble board

This module provides the LS (Letter Score) multiplier and WS (Word Score) multiplier for a given square on a *standard scrabble board.

The function accepts 2 integers as parameters, x, y, that map to a position on the board. Both params must be between 0 and 14. x is the column. y is the row.

It returns an object with properties for the Letter Score and Word Score multiplier value for the requested square. It throws and Errors if the parameters are unexpected.

// x, y => {}
board(0,0) // { LS: 1, WS: 3 } AKA "Triple word score"
board(1,0) // { LS: 1, WS: 1 } AKA "Normal"
board(2,0) // { LS: 1, WS: 1 } AKA "Normal"
board(3,0) // { LS: 2, WS: 1 } AKA "Double letter score"

Based on the 2000 J.W.Spear & Sons PLC board

Keywords

scrabble

FAQs

Package last updated on 14 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts