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 gotoNet( ) |
method pickFlowers( ) |
---|---|
|
Fill in your own code for the incomplete methods
-- >
Your program should work for BOTH of these islands and any other similar island without any changes:
![]() obstacle1 |
![]() obstacle2 |
---|