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

Safe HaskellSafe
LanguageHaskell98

Wordify.Rules.Player

Synopsis

Documentation

name :: Player -> Name Source

score :: Player -> Score Source

removePlayedTiles :: Player -> [Tile] -> Maybe Player Source

Removes played tiles from the player's tile rack, if it was possible for the player to play those tiles in the first place. A player may play a tile on his rack, unless it is a blank, which must first be assigned a letter.