Category Archives: Jeroo

Assignments and posts involving Jeroo.

Scavenger Hunt and relay race

Relay Race


Download both island files.

Objective: Three Jeroos (you give them names) are practicing for the Santong Relays. Figure 5 shows the course at the start of the race. The first Jeroo begins at (4,9) facing EAST. It must pick the flower and give it to the second Jeroo who begins at (7,13) facing NORTH. The second gives the flower to the third Jeroo who begins at (4,15) facing WEST. The third Jeroo must plant the flower at (3,16), run to (3,21) and stop


Scavenger Hunt


Objective: 

      Two Jeroos start at opposite ends of Long Island, one at (3,5) facing EAST, and one at (5,18) facing WEST. Each Jeroo is supposed to pick two flowers. The first one can be from anywhere along the edge of the island, and the second must be the one in the center. The first one to pick the center flower is declared the winner. There are a few rules to this scavenger hunt.

    • The Jeroos can only turn LEFT
    • The Jeroos must take turns, each doing only thing in each turn: hop(), turn(LEFT), or pick()
    • A Jeroo can only hop forward one space in its turn.


Download both island files.

Jeroo Spelling Letters (python)

I.  Copy and paste this code below in the Jeroo “IDE”. Run the code several times unti you understand what is going on, then try experimenting with the code, changing it around until you are comfortable with the basic methods of a Jeroo.

 

spell_T_in_python1

II.

Objective: Have a Jeroo spell out the lettter “Z ” in the same fashion as Part I

Picture of the finished project

spell_Z_in_python1

 

III.

Objective: Have a Jeroo spell out the letter “O ” in the same fashion as Part I

Mazes 2

Mazes #2

Shunya Map 1

shunya_1


Shunya 4

shunya_4

 

 

Struhl Map:

  • Start   20, 18
  • go around the interior, get the flower, pick it up.
  • 1 loop only

struhl_map

 

 

Heeyeon’s Map:

  • heeyeons_maze.jev
  • start Jeroo at (23,1) and pick up the flower  at that location
  • go to (1,23)
  • you may NOT pick a flower or visit a cell that has a flower (See animation at bottom)

Picture at start:

heeyons_maze1

One Solution:heeyeons_maze

 

Brett’s Maze 2

Description: Start at 0,0, pick all the flowers then use them to toss() your way through the nets.   bretts-maze2
 bretts-maze2

 

George’s Map  : Start at ( 10,0) , facing SOUTH,  Use 1 loop and pick the flowergeorges-map

 Paul’s Diagonal Map
pauls-diagonal

 

 Matt’s All Flower Map
Map name :   matt_water_flower_map.jev
Directions: pick up all the flowers. Use 1 while loop. You can start and end wherever you want. Just make sure that the loop eventually terminates.
One strategy:
 matts-all-flowers

A Different strategy

matt_water_flower_map


Jar jar’s Haven:

jarjarshaven

 

Bismark’s Map

Directions: Pick all the flowers. Start anywhere ; end anywhere. Don’t die, Make sure the loop ends.

bismarks-map

 

Diagonal Inwards
Fill up the Map
  • * Use a blank map and have 2 Jeroos fill up every spot with a flower.
  • Use a single loop (not an infinite one either)

diag-inwards-133percent

Sota
sota

EXTRA CREDIT:

Mazes 1

Objective: To use while loops to get the Jeroo to pass through each maze and get the flower. It is possible to write a solution to both of these mazes using a single while loop–albeit this loop will have several( about 5 or 6) if tests! It is important for this problem that you do NOT simply hand code this. To get an A on both of these assignments you must use 1 single while loop per maze.
Download All Island Files

 island3-A 

islands-3-a-opt


Shunya 3

shunya_3

 


Aliya’s Map

aliya



 Mazes 2 (start in top left, 1 loop to pick flower)

mazes-1-assign-mazes2

 


Shunya 2

shunya_2

 


Yuna’s Original Maze

 

yunas_original_maze


 

 

 island-3-D (start in the top left, and get to the bottom right)

island3-d

AlanasMessage_MAP.jev

alanasmessage_sped_up


4) ZigZag   : Use 1 while loop (not infinite), follow the flowers, picking them up and use those flowers traverse over the nets. Notice where the Jeroo ends (ie your while loop condition)

zigazg-opt

5)  Spell Z (Blank Map)

  1. start at 0 , 0 with 70 flowers.
  2. Use a single while loop to spell a letter z

spell-z-jeroo-with-loop_assignment-complete


 

Last and most definitely not least:

island3-C ** A+ assignment.

This is the deceptively hard and should be done last and only if you want that A+


 

 

Done all of the maps? Start on the next set here

Hurdles

Objective: A Jeroo starts at the southwest corner of the island, location (23,0), facing East with no flowers. There is a flower somewhere east of the Jeroo. There are zero or more hurdles, represented by nets, between the Jeroo and the flower. Each hurdle is a rectangular arrangement of nets with its base along the Southern Sea. The height and width of each hurdle is unknown. The number of hurdles and the spacing between the hurdles is unknown. There is at least one row of empty cells along the top and sides of each hurdle. There are no water features and no other Jeroos on the island. The only nets are those that define the hurdles. The goal of this program is to have the Jeroo jump all of the nets, pick the flower, and stop. A representative island is shown in figure 1.

  • start at bottom left
  • with zero flowers
  • use a single while loop
  • you may only hop() a single space (ie no hop(2), hop(3), hop(n) )
  •  pick the flower that is (generally) located on the right

 

Download all the island files

OneHurdle.jev

Solution : Not graded

two-hurdles.jev Not graded


 

ManyHurdles.jev

Not graded


 


Extreme Hurdles.jev    8/10


Description:Write an infinite loop that makes your Jeroo travel around the perimeter of the island.  9/10


 Download this island file (steve’s maze)

steves maze

 

download-bttnJacob Icejet’s Map

  • this gets you the 10/10
  • use 1 while loop
  • the Jeroo should travel in an infinite loop around the perimeter of the map.

 

Hurdles

 


 

download-bttnjacob_icejet_map2 Extra credit

  • this is extra credit
  • 1 while loop
  • start with zero flowers
  • pick the one flower in the top right and use that to access the flower that is in the bottom middle.

ice-jet-map

Two Friends Meet

One Saturday morning, two friends, Bugs and Daffy, decide to meet and plant flowers to beautify Santong island. Daffy starts in the Northwest corner facing East with 90 flowers in his pouch. Bugs starts in the Northeast corner facing West with 90 flowers in his pouch. Bugs and Daffy begin hopping toward one another. As they hop, each plants exactly one flower at every location it enters, including its starting location. They meet, facing each other, roughly in the middle of row 0. After a handshake and a little small talk, Bugs and Daffy both turn toward the south and continue planting flowers all the way to the southern edge of the island. When both reach the South Sea, the say goodbye and part. Daffy turns west and plants flowers all the way to the Western Ocean. Bugs turns east and plants flowers all the way to the Eastern Ocean. This is where our story ends. Your task is to write a Jeroo program that will illustrate this story.

One possible solution to this project is represented in the picture below

Jeroo Walk The Lake with Loops

 

Original Project Descriptions is here

Acknowledgement This problem is adapted from one that was created originally by Erica Eddy of The University of Wisconsin – Parkside.

Your jeroo is exploring the outer perimeter of the lake. It starts next to a flower and travels the entire way around the lake. Have your jeroo stop immediately before the flower (using a loop) and then, after the loop is over,  your jeroo should pick the flower.

Downloaddownload-bttn the maps

Map #1 : rectangular-lake.jev arrow_right_large
recangular-lake-if2.jev arrow_right_large  
For this one, your Jeroo should travel around the entire outer rim of the island and stop immediately before the flower.
rim-of-lake-1.jev
arrow_right_large  
rectangular-lake-bumps1.jev
arrow_right_large  
Remember Nets kill Jeroosrectangular-lake-bumps2.jev arrow_right_large  
Write a loop that makes the jeroo travel around the lake below. This loop should never end. walk-the-lake-jacks-map.jevs