![]() 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.ġ2.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. I finished in first place and this was how my greeps performed on the first three maps. Michaelįinal Score (Second Run) Use the total scores to determine if you Greeps logic is improvingġ2.3 Running the Competition To make the competition interesting, there should be two versions of the Greeps scenario. 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. Now, Im not looking for actual code, rather, a concept that will most efficiently gather those tomatoes I have no idea how to utilize the 3 types of paint these guys can spit nor how to manage. So I suggest that they wait at the pile when they find one. Hi all, just yesterday my comp sci class was given the infamous Greeps lab using Greenfoot, an extension of BlueJ, which is a Java compiler. The next thing is that Greeps can only pick up tomatoes when two of them are at the tomato pile together. The first thing I suggest to my students to do is to turn when they hit water, so they don’t get stuck. Strategy from Michael Kolling 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. This essentially means that I need to get them to move past the border (which is water) and move elsewhere on the map until it located a cluster of tomatoes. Methods from Actor that cheat normal movement (such as setLocation) may not be used. ![]() Use that option to tell it to search in C:\Program Files\PrimeSense. something similar), or when the search fro drivers comes up, tell it to search, but there is an option you to tell it to search a specific directory. Greeps have no magic powers - they cannot create things out of nothing. Greenfoot Kinect Server won't work properly by nccb. You are not allowed to create any scenario objects (instances of user-defined classes, such as Greep or Paint). I'm going to guess you stumbled to this post looking for some ideas and code to help you succeed in it Also, please remember I am also a student so my code might not be perfect, so feel free to correct me. Greeps are almost blind, and cannot look any further. ago YouHeatedBro Greeps - Tips & Code Recently, numerous programming classes started the Greeps Competition. You are allowed to look at the world only at the immediate location of the Greep. ![]() Interlude 2 - The Greeps Competition Bruce ChittendenĪdd Your Name to Greeps Class Put your name here /** * This method specifies the name of the author (for display on the result board).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |