Safe Haskell | None |
---|
Day22
Description
General - Playing cards. With 2 players. In rounds. Recursivly until one of the players has no more cards to play.
Part 1 - Found out who won and calculate the score.
Part 2 - This was hard. You had to read the problem description carefully. And then I introduced a couple of bugs that where not caught be the given testcases.
Documentation
playRound2 :: Game -> Game #
Play one round (part2).
playSubGame2 :: Game -> Game #
Play a subgame (part2).