3 ms·
Yeah, my day 15 part 2 is still somewhat bugged. At termination, I print out 6 possible answers, each of which represents an off-by-one error. My correct answer
by wycy 8y ago
Yeah, my day 15 part 2 is still somewhat bugged. At termination, I print out 6 possible answers, each of which represents an off-by-one error. My correct answer is fortunately one of these: its the round * (elves HP + 3), which indicates that my elves sustain one too many attacks before the game ends. I still have no idea where this extra attack is coming in, but I’ve basically given up on perfecting my day 15 code. It was incredibly frustrating.
- teacpde 8y agoThat sounds very similar to what I experienced, my bug was that a player A plays twice in a round because it steps into a spot yielded by player B which died in the same round. My mistake was bookkeeping in an incorrect (which is only so for a few cases) way. Hope that helps.