Expand description
Β§Immune System Simulator 20XX
Similar to Day 15
we implement the rules precisely, paying attention to edge cases.
In particular during part two, itβs possible for a fight to end in a draw, if both armies become too weak to destroy any further units. As each fight is independent, we find the minimum boost value with a multithreaded parallel search.
Structs§
Enums§
- Kind π
Functions§
- fight π
- parse_
group πParsing the input relatively cleanly is a challenge by itself. - parse_
list πThere can be any amount of weaknesses or immunities. - worker π