Skip to content

Commit 12b87ba

Browse files
committed
There must not be card rotations during the 7th turn
1 parent 02326be commit 12b87ba

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Startups/Game.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,12 @@ rotateHands age cardmap = itraverse rotatePlayer cardmap
231231
playAge :: GameMonad m => Age -> m ()
232232
playAge age = do
233233
cards <- dealCards age
234-
remaining <- foldM (\crds turn -> playTurn age turn crds >>= rotateHands age) cards [1 .. 7]
234+
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]
235240
discardpile <>= toListOf (traverse . traverse) remaining
236241
-- now for recycling
237242
pm <- itoList <$> use playermap

0 commit comments

Comments
 (0)