Skip to content

yeehawbeans/EfficientGreeps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

EfficientGreeps

A solution for the Greenfoot coding challenge called "Greeps"

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

Rule 2: No additional fields. You cannot extend the Greeps' memory. That is: You are not allowed to add fields to the class (except final fields). You can use the one byte memory that is provided.

Rule 3: You cannot move more than once per 'act' round.

Rule 4: You cannot communicate directly with other Greeps. That is: no field accesses or method calls to other Greep objects are allowed. (Greeps can communicate indirectly via the paint spots on the ground.)

Rule 5: No long vision. You are allowed to look at the world only at the immediate location of the Greep. Greeps are almost blind, and cannot look any further.

Rule 6: No creation of objects. You are not allowed to create any scenario objects (instances of user-defined classes, such as Greep or Paint). Greeps have no magic powers - they cannot create things out of nothing.

Rule 7: No teleporting. Methods from Actor that cheat normal movement (such as setLocation) may not be used.

About

A solution for the Greenfoot coding challenge called "Greeps"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors