Skip to content

Instantly share code, notes, and snippets.

@maksverver
Created December 12, 2022 14:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save maksverver/ebb4bc150f8dc6951b7ff5ca37edb65a to your computer and use it in GitHub Desktop.
Monkey 0:
Starting items: 1
Operation: new = old * 3
Test: divisible by 2
If true: throw to monkey 1
If false: throw to monkey 2
Monkey 1:
Starting items: 1
Operation: new = old * 3
Test: divisible by 2
If true: throw to monkey 0
If false: throw to monkey 2
Monkey 2:
Starting items: 1
Operation: new = old * 3
Test: divisible by 2
If true: throw to monkey 0
If false: throw to monkey 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment