Safe Haskell | None |
---|
High score table operations.
- data Status
- data ScoreRecord = ScoreRecord {}
- type ScoreTable = [ScoreRecord]
- restore :: CP -> IO ScoreTable
- register :: CP -> Bool -> ScoreRecord -> IO (String, [String])
- slideshow :: Int -> ScoreTable -> Int -> [String]
Documentation
Current result of the game.
data ScoreRecord Source
A single score record. Records are ordered in the highscore table, from the best to the worst, in lexicographic ordering wrt the fields below.
type ScoreTable = [ScoreRecord]Source
The list of scores, in decreasing order.
restore :: CP -> IO ScoreTableSource
Read the high scores table. Return the empty table if no file.