We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02326be commit 12b87baCopy full SHA for 12b87ba
1 file changed
Startups/Game.hs
@@ -231,7 +231,12 @@ rotateHands age cardmap = itraverse rotatePlayer cardmap
231
playAge :: GameMonad m => Age -> m ()
232
playAge age = do
233
cards <- dealCards age
234
- remaining <- foldM (\crds turn -> playTurn age turn crds >>= rotateHands age) cards [1 .. 7]
+ let turnPlay crds turn = do
235
+ ncrds <- playTurn age turn crds
236
+ if turn == 7 -- The 7th turn is a hack for the efficiency capacity
237
+ then return ncrds
238
+ else rotateHands age ncrds
239
+ remaining <- foldM turnPlay cards [1 .. 7]
240
discardpile <>= toListOf (traverse . traverse) remaining
241
-- now for recycling
242
pm <- itoList <$> use playermap
0 commit comments