Scientific Programming II

ModSim

Greeps Competition


Necessary Software

Background

The Greeps are small, bug-like aliens obsessed with tomatoes. They have come to Earth, the largest source of tomatoes in the galaxy, in order to sate their hunger for tomatoes. You will be in control of 20 Greeps (no more, no less) and are challenged with providing the Greeps with the best algorithm to find as many tomatoes as possible!

It's not as simple as it sounds, however. Greeps have some of the best memories in the galaxy, but can only remember a few things at a time. Also, they are so small that they cannot pick up a tomato to carry themselves. They can, however, load a tomato on the back of another Greep. They also cannot communicate with each other, other than spitting and seeing paint spots.

Competition

The competition will run from 10-31-14 to 11-6-14. Teams may be formed, but no more than two people may work in a team. Teams will need to be submitted by the beginning of the competition.

Rules (page 125)

  1. Only change the class Greep. No other classes may be modified or created.

  2. You cannot extend the Greeps' memory. No non-final fields may be added. You are provided with one int and two booleans to use

  3. You cannot move more than once per act round

  4. Greeps cannot communicate with each other directly. They cannot call each other's methods or access each other's fields

  5. No long vision. Greeps cannot see anything beyond what is directly below them.
  6. No creation of objects. World.addObject() is not allowed at any time

  7. No teleporting.

  8. No changing the size of the Greeps

Strategies (page 126)

Grading

Num Of Tomatoes Grade
50+ 100
40-49 90
30-39 80
20-29 70
10-19 60
0-9 0

Current Scores

AM
Student Score
Mr. Davis 200
Charles + Parker 170
Justin 168
Christy + Shannon 164
Gavin + Jessica 153
Seth + Nathan 141
Swag King Kanye 128
Joannabeth 123
Brett + Brad 123
Vanessa 110
Wyatt 62
PM
Student Score
Joseph 270
Kaelan + Suyoung 206
Mr. Davis 200
Wesley 183
Daniel 175
Alex 155
Alec 153
Sahaj 136
Josh + Lawrence 136
Oronde + Dylan 133
Jose 50