haskellscrabble-2.0.1: A scrabble library capturing the core game logic of scrabble.

Safe HaskellSafe
LanguageHaskell98

Wordify.Rules.Square

Synopsis

Documentation

scoreSquares :: Seq Square -> Seq Square -> Int Source

Calculates the score of one played word.

The first list contains squares that are already on the board (and thus are not subject to bonuses).

The second list contains squares that are newly occupied.