A very peculiar obstacle course is laid out.
BEFORE YOU PROGRAM fill in the detailed algorithms for these 4 methods
| method hopToFlower(){ //keep hopping until a flower is ahead |
method disableNets(){ // remove all nets in a row |
method pickDirection(){ // turn right if the next space is a net, or turn left if the next space is water |
method gotoWater(){ // keep hopping until water is ahead |
|---|---|---|---|
|
method |
method |
|---|---|
|
What other methods are missing?
write your code.
Your program should work for BOTH of these islands without any changes: obstacle1 and obstacle2
![]() |
![]() |
|---|