Slogo Assign4.html


BY: Diemecha Hilliard


Click on the"go" button and watch the relay racers head to the finish line while the crowd cheers. If you want a replay you can hit the "setup" button and it will put the racers back at their starting positions.Once this is done you can hit "go" again and watch a very interesting race!.

Here is a picture of the racers at their starting positions.

Here is a snapshot of the middle of the race.It looks like the purple will win.

Here is a snapshot of the end of the race.Green won!

Here is the Turtle procedures I used if you are interested.

  • to moving
  • if who < 124 [seth 90]
  • if who < 124 [fd 1]
  • if who < 124 [bk 1]
  • end
  • to setup
  • if who = 124 [setxcor -40]
  • if who = 124 [setycor -17]
  • if who = 127 [setxcor -40]
  • if who = 127 [setycor -24]
  • if who = 126 [setxcor -40]
  • if who = 126 [setycor -30]
  • if who = 125 [setxcor -40]
  • if who = 125 [setycor -35]
  • end
  • to race
  • reapeat 600 [moving]
  • if who < 50 [setc 55]
  • if who = 125 [seth90]
  • if who = 126 [seth 90]
  • if who > 49 and who < 100 [setc 45]
  • if who = 124 [seth90]
  • if who = 127 [seth90]
  • if who = 125 [fd 25]
  • if who = 126 [fd 25]
  • if who = 124 [fd 15]
  • if who > 99 and who < 124 [setc 1]
  • if who = 127 [fd 10]
  • if who = 125 [fd 5]
  • wait 1
  • if who = 126 [fd 5]
  • wait 1
  • if who = 124 [fd 10]
  • wait 1
  • if who = 127 [fd 20]
  • wait 1
  • if who = 125 [fd 25]
  • wait 1
  • if who = 126 [fd 25]
  • wait 1
  • if who = 124 [fd 15]
  • wait 1
  • if who = 127 [fd 10]
  • wait 1
  • if who = 125 [fd 2]
  • wait 1
  • if who = 126 [fd 3]
  • wait 1
  • if who = 124 [fd 14]
  • wait 1
  • if who = 127 [fd 10]
  • wait 1
  • if who = 125 [fd 5]
  • wait 1
  • if who = 126 [fd 12]
  • wait 1
  • if who = 124 [fd 5]
  • wait 1
  • if who = 127 [fd 2]
  • wait 1
  • if who = 125 [fd 15]
  • wait 1
  • if who = 126 [fd 2]
  • wait 1
  • if who = 124 [fd 5]
  • wait 1
  • if who = 127 [fd 35]
  • end