![]() The judge then copies that file into his full (10-map) scenario, recompiles and runs it. (So the challenge for contestants is to develop movement algorithms that are flexible enough to work on different maps, not just a known one.) We recommend running the competition with 10 different maps.Ĥ0 12.4 Technicalities For submissions of an entry to the judge, the easiest mechanism is that contestants submit only the Greeps.java file. The Greeps land and forage on each of the three maps in turn. (This is the one included in the book scenarios.) This scenario includes three different maps. To make the competition interesting, there should be two versions of the Greeps scenario. Use the total scores to determine if you Greeps logic is improving You can then (that will be a day or two in) also have discussion where they describe their ideas of how to improve it. That is usually enough to get them started and to generate more ideas. So I suggest that they wait at the pile when they find one. The next thing is that Greeps can only pick up tomatoes when two of them are at the tomato pile together. getFlag (int) and setFlag (int, bolean true or false) so it only takes 1 or 2 so the greep has a small memory that it help them to store one place by setFlag (1,true) in the place you want so in my case i setFlag (2) when the greep the tomato to stop the problem with this code is this code make more than one greep stop at. The first thing I suggest to my students to do is to turn when they hit water, so they don’t get stuck. In the handout version, Greeps just run more or less straight, and when they hit an obstacle (water or the screen edge) they are stuck and stay there. Methods from Actor that cheat normal movement (such as setLocation) may not be used. Greeps have no magic powers - they cannot create things out of nothing.ġ8 Rule 7 Rule 7: No tele-porting. This class defines the methods that all Greeps share, and which you can use to construct your solution. ![]() Students can concentrate on modifying the application logic, and engage and experiment with objects. The Greenfoot environment makes creation of graphics and interaction easy. You are not allowed to create any scenario objects (instances of user-defined classes, such as Greep or Paint). The environment is designed specifically to convey object-oriented con- cepts and principles in a clean, easily accessible manner. Greeps are almost blind, and cannot look any further.ġ7 Rule 6 Rule 6: No creation of objects. ![]() You are allowed to look at the world only at the immediate location of the Greep. */ public static String getAuthorName() Rule 5: No long vision. Put your name here /** * This method specifies the name of the author (for display on the result board). Presentation on theme: "Interlude 2 - The Greeps Competition"- Presentation transcript:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |