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

Safe HaskellSafe-Inferred
LanguageHaskell98

Wordify.Rules.Player

Synopsis

Documentation

data Player Source

Instances

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.