| Problem statement | Source code | Tags: Brute force
Just compute the score for each round based on the given rules.
outcomes records all possible outcomes of the game:
I want to keep the same score function from part 1, so instead of sumMap score games, I use sumMap (\g -> score (fst g, shape g)) games, where shape computes the shape I need to play based on the desired outcome: