Home | Tasks | Help | Blog | Register | Login

Stats

Players
15

Top players

#1 Raelifin (-1940)
#2 adrian (-11353)
#3 levis501 (-12147)
#4 moldy (-15144)
#5 robert (-16047)
#6 mlohbihler (-27392)

The collector

Level: some effort

Get your agent to collect 100 of the targets that randomly appear. The faster, the better.

For general GoiD concepts visit the help page. For more information on this task, read on.

The agent in this task has a triangular visual field in front of it, shaded dark yellow. This field is able to detect both obstacles (walls) and targets (small yellow circles). To collect a target the agent's body must cover the target completely.

The targets will appear distributed around three randomly determined and invisible "target centers". (Sometimes the target centers are close enough together that there appears to be less than three.) Targets will appear at a rate inversely proportional to the number of targets already displayed; the faster the agent collects targets, the faster more will appear.

As usual, the sample script for this task will get the job done (usually... read on), but it is not optimised. Some mechanism for remembering the whereabouts of a target center will greatly increase the agent's performance. Also, the sample script sometimes will cause the agent to get "stuck" in the lower left-hand corner and other tight spots.

senses

* a PolarPoint2D is an object with the methods getRadius() (double), getAngle() (double), and toCartesian() (returns a Point2D object with x and y properties).

actuators

Play now: (or use the applet)

All tasks can be played either as applets or with Java Web Start. Applets are convenient, but the rendering in Web Start is much better. Web start is recommended.