Copyright | >implying |
---|---|
License | >implying |
Maintainer | Florian Hageneder |
Stability | none |
Portability | what? |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
The type to store a game sessions state
:: Int | The ID of this session |
-> String | The goal of this instance of Hangman |
-> Maybe Game | A valid new game or Nothing |
Creates a new game session with an completely unsolved given solutionWord
:: Player | The player who wants to make a turn |
-> Char | The char to try |
-> Game | The game to operate on |
-> (Game, Bool) | The updated game |
Updates the given game session and transists it to the next state
:: Player | The player who wants to solve the game |
-> String | The solution to try |
-> Game | The game to operate on |
-> (Game, Bool) | The updated game |
Updates the given game session and transists it to the next state
nextPlayerAlive :: Game -> Player Source #
returns the next alive player that is at turn.