| Copyright | >implying |
|---|---|
| License | >implying |
| Maintainer | Florian Hageneder |
| Stability | none |
| Portability | what? |
| Safe Haskell | None |
| Language | Haskell2010 |
Player
Description
Documentation
maxFaliures :: Int Source #
The maximum amount of failures a player is allowed to do before he has to die
Data type to bundle Imformation about a player within an game session.
Constructors
| Player | |
Creates a new Player with the given id. The player is initialized with NO secret and alive
newPlayer 4 >>> (4, "", 0, True)
returns a list of all players alive
Updates the player after an wrong try. Kills him after last failure
Arguments
| :: [Player] | The set of players to search in |
| -> Int | The id of the player to fetch |
| -> String | The secret key of the player |
| -> Maybe Player | A player or Nothing if id or key did not match |
Grants access to a player with given id if the key does match
Sets the state of an player to dead