wordify-0.1.0.0

Safe HaskellSafe
LanguageHaskell2010

Wordify.Rules.Player

Synopsis

Documentation

data Player Source #

Instances
Eq Player Source # 
Instance details

Defined in Wordify.Rules.Player

Methods

(==) :: Player -> Player -> Bool #

(/=) :: Player -> Player -> Bool #

Show Player Source # 
Instance details

Defined in Wordify.Rules.Player

data LetterRack Source #

Instances
Eq LetterRack Source # 
Instance details

Defined in Wordify.Rules.Player

Show LetterRack Source # 
Instance details

Defined in Wordify.Rules.Player

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.