aoc

Advent of Code Solutions
git clone git://git.alexkarle.com.com/aoc
Log | Files | Refs | README | LICENSE

sample (610B) [raw]


      1 Monkey 0:
      2   Starting items: 79, 98
      3   Operation: new = old * 19
      4   Test: divisible by 23
      5     If true: throw to monkey 2
      6     If false: throw to monkey 3
      7 
      8 Monkey 1:
      9   Starting items: 54, 65, 75, 74
     10   Operation: new = old + 6
     11   Test: divisible by 19
     12     If true: throw to monkey 2
     13     If false: throw to monkey 0
     14 
     15 Monkey 2:
     16   Starting items: 79, 60, 97
     17   Operation: new = old * old
     18   Test: divisible by 13
     19     If true: throw to monkey 1
     20     If false: throw to monkey 3
     21 
     22 Monkey 3:
     23   Starting items: 74
     24   Operation: new = old + 3
     25   Test: divisible by 17
     26     If true: throw to monkey 0
     27     If false: throw to monkey 1