[2021 Day 21 Part 2] [Rust] Using test case, getting the correct player 2 value but player 1 is too high

  1. The 3 sidedness comes from the combos that I iterate through. 36 gives 729 different sets of 6 rolls. 3 for player 1 and 3 for player 2. Unless that's just exceedingly wrong idk.

  2. If the player 2 ends up winning, the player 1 scores for that round has been incremented. I don't see this being accounted for, and it would explain the result being too large.

Leave a Reply

Your email address will not be published. Required fields are marked *