points: Copmutes the number of points in a scrabble word.

Description Usage Arguments Value Examples

View source: R/points.R

Description

Copmutes the number of points in a scrabble word.

Usage

1
points(word, point.mult = rep(1, nchar(word)), dw = 0, tw = 0)

Arguments

word

# string of letters

dw

# number of double word scores

tw

# number of tripple word scores

locations

# list of special letter score tile locations within the word

multiples

# double or tripple letter score corrosponding to letter index

Value

# total score

Examples

1
points("botch", c(1,2,1,2,1), dw = 2)

staceaileen/scRabble documentation built on May 25, 2019, 8:18 a.m.