werewolf 1.4.0.0 → 1.4.0.1
raw patch · 3 files changed
+10/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−0
- src/Game/Werewolf/Game.hs +3/−1
- werewolf.cabal +1/−1
CHANGELOG.md view
@@ -7,6 +7,12 @@ ### Upcoming +### v1.4.0.1++*Revisions*++* Ignore the Jester when considering Necromancers win condition. ([#244](https://github.com/hjwylde/werewolf/issues/244))+ ### v1.4.0.0 *Major*
src/Game/Werewolf/Game.hs view
@@ -352,11 +352,13 @@ -- | Queries whether the Necromancer has won. The 'Necromancer' wins if they and their zombies are -- the only players surviving.+--+-- N.B., the Jester is not considered when determining whether the 'Necromancer' has won. hasNecromancerWon :: Game -> Bool hasNecromancerWon game = not (hasEveryoneLost game) && allOf (players . traverse . alive)- (\player -> any ($ player) [is necromancer, is zombie]) game+ (\player -> any ($ player) [is necromancer, is zombie, is jester]) game -- | Queries whether the 'Villagers' have won. The 'Villagers' win if they are the only players -- surviving.
werewolf.cabal view
@@ -1,5 +1,5 @@ name: werewolf-version: 1.4.0.0+version: 1.4.0.1 author: Henry J. Wylde maintainer: public@hjwylde.com