pickFlowers | giveFlowers | disableNets | dance | |
---|---|---|---|---|
pseudo code | while there is a flower nearby, pick a row and decide what way to turn | Find the other Jeroo as long as the jeroo has flowers give them away |
|
|
code | method pickAll(){ while(________________________) { pickARow(); decide();} } |
method giveAll(){ find(); while(________________) } |
method netAll(){ findNets(); while(_________________________){ disableRow(); decide2(); } } |
method spin(){ |
break down the parts | method pickARow(){ } method decide(){ } |
method find(){ } |
method findNets(){ } method disableRow(){ } method decide2(){ } |