diff --git a/2022/day11/Monkey.java b/2022/day11/Monkey.java index d68bb68..5d24719 100644 --- a/2022/day11/Monkey.java +++ b/2022/day11/Monkey.java @@ -15,5 +15,7 @@ public class Monkey { falseDest = falseD; } - private parseOperator() + private parseOperator() { + + } } diff --git a/2022/day11/day11_algo.txt b/2022/day11/day11_algo.txt new file mode 100644 index 0000000..10836da --- /dev/null +++ b/2022/day11/day11_algo.txt @@ -0,0 +1,29 @@ +Make a monkey class + -arr variable to hold current items + -operator variable to determine + or * + -factor to pair with operator + -target if test true + -target if test false + -test? how can i include the test in the class? + + Methods: + worryCheck - modify worry value based on algorithm provided, void + throwItem - pops item value, integer, will need to call testCriteria, return -1 to end + catchItem - receives a thrown item, void + testCriteria - evaluates criteria prior to throw, boolean + constructor - needs item list array, the operator, operator factor, target true, and target false + +Make a Monkey-facilitator class. Goof Troop. + -Array of Monkeys + -thrown item variable to act as intermediary? + + Methods: + - Call monkey array action atates in turn until -1 received + -Intermediary catchItem + - Intemediary throwItem + addMonkey method to call Monkey constructor + + +Main + +Declare the monkey classes to fill the GoofTroop array \ No newline at end of file