Jeroo While Loops #2

  • #2 A

    Create the map below

    • with a flower in 0,0
    • Jeroo to its right (0,1)
    • using while loop(s) traverse around the border of the island
    • at the end pick the flower
    • you can only use hop() (ie you can’t hop more than 1 space)

jeroo_walk_exterior1jeroo_walk_exterior2 jeroo_walk_exterior3 jeroo_walk_exterior4 jeroo_walk_exterior5 jeroo_walk_exterior6 jeroo_walk_exterior7 jeroo_walk_exterior8

 

#2 B

Create the map below

  • Jeroo to its right (6,6)
  • use multiple while loops
  • at the end pick the flower
  • you can only use hop() (ie you can’t hop more than 1 space)

Download the island file

1) Starting position

walk-lake-loops4

 

walk-lake-loops5
b
finished-program-state1