R/impossible.points.R

data(sysdata,envir=environment())
impossible.points <-
function(cl){
 
  ct <- lapply(cl,table)
  extra.points <- lapply(ct,function(t){
    sapply(names(t),function(l){
      ifelse(t[l] > letter.dists[l],(t[l]-letter.dists[l])*sls(l),0)
    })
  })
  sapply(extra.points,sum)
}

Try the ScrabbleScore package in your browser

Any scripts or data that you put into this service are public.

ScrabbleScore documentation built on May 2, 2019, 2:01 p.m.