Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Documentation
A tile is a letter with a value, or a Blank tile which may have been given a letter. Blank tiles always have the value '0'.
isPlayable :: Tile -> Tile -> Bool Source
isPlayble, applied to a played tile and compared against a tile returns true if a player returned a letter tile on their rack, or if the player played a Blank that has been given a letter
tileLetter :: Tile -> Maybe Char Source