packages feed

haskellscrabble 1.2 → 1.2.1

raw patch · 2 files changed

+2/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

haskellscrabble.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                haskellscrabble-version:             1.2+version:             1.2.1 synopsis:            A scrabble library capturing the core game logic of scrabble. description:         A scrabble library which enforces legal transitions between moves. Intended to facilitate the development of a playable game. homepage:            http://www.github.com/happy0/haskellscrabble
src/Wordify/Rules/Game.hs view
@@ -101,7 +101,7 @@   players game = [player1 game, player2 game] ++ optionalsToPlayers (optionalPlayers game)    getPlayer :: Game -> Int -> Maybe Player-  getPlayer game playerNumber = (players game) LS.!! playerNumber+  getPlayer game playerNumber = (players game) LS.!! (playerNumber - 1)    numberOfPlayers :: Game -> Int   numberOfPlayers game = 2 + maybe 0 (\(_, maybePlayer4) -> if isJust maybePlayer4 then 2 else 1) (optionalPlayers game)