werewolf 0.3.1.1 → 0.3.1.2
raw patch · 3 files changed
+22/−5 lines, 3 files
Files
- CHANGELOG.md +18/−0
- src/Game/Werewolf/Engine.hs +3/−4
- werewolf.cabal +1/−1
CHANGELOG.md view
@@ -2,6 +2,12 @@ #### Upcoming +#### v0.3.1.2++*Revisions*++* Fixed dead werewolves being informed of votes. ([#24](https://github.com/hjwylde/werewolf/issues/24))+ #### v0.3.1.1 *Revisions*@@ -16,6 +22,12 @@ * Added a message to say the names of all the players at the start of a game. ([#23](https://github.com/hjwylde/werewolf/issues/23)) * Added a message to say the roles in play at the start of a game. ([#16](https://github.com/hjwylde/werewolf/issues/16)) +#### v0.3.0.4++*Revisions*++* Fixed dead werewolves being informed of votes. ([#24](https://github.com/hjwylde/werewolf/issues/24))+ #### v0.3.0.3 *Revisions*@@ -47,6 +59,12 @@ * Allowed `start` to work when the game has ended but `end` hasn't been called. ([#15](https://github.com/hjwylde/werewolf/issues/15)) * Added `quit` command. ([#13](https://github.com/hjwylde/werewolf/issues/13))++#### v0.2.0.2++*Revisions*++* Fixed dead werewolves being informed of votes. ([#24](https://github.com/hjwylde/werewolf/issues/24)) #### v0.2.0.1
src/Game/Werewolf/Engine.hs view
@@ -101,12 +101,11 @@ advanceTurn Werewolves -> do- werewolvesCount <- uses players (length . filterAlive . filterWerewolves)+ aliveWerewolves <- uses players (filterAlive . filterWerewolves) votes' <- use votes - when (werewolvesCount == Map.size votes') $ do- werewolfNames <- uses players (map _name . filterWerewolves)- tell $ map (uncurry $ playerMadeKillVoteMessage werewolfNames) (Map.toList votes')+ when (length aliveWerewolves == Map.size votes') $ do+ tell $ map (uncurry . playerMadeKillVoteMessage $ map _name aliveWerewolves) (Map.toList votes') advanceTurn
werewolf.cabal view
@@ -1,5 +1,5 @@ name: werewolf-version: 0.3.1.1+version: 0.3.1.2 author: Henry J. Wylde maintainer: public@hjwylde.com