Crazy

From Robowiki
Jump to navigation Jump to search
Crazy
100
Author(s) Mathew Nelson, Flemming N. Larsen
Extends AdvancedRobot
Targeting Head-On Targeting
Movement Pattern Movement
Code License Eclipse Public License v1.0

Background Information

What's special about it?
Crazy is a Sample Bot that moves in a preset pattern of semi- and quarter-circles. It exists to demonstrate primitive non-blocking calls and the waitFor() method. Its source code is incredibly well-commented.
How competitive is it?
In the general melee rumble, it is the second most successful Sample Bot (behind Walls), ranking at #351 out of 399.

Strategy

How does it move?
It moves in the following pattern:
  • Turn 90°.
  • Turn -180°.
  • Turn 180°.
While moving forward constantly. If it hits a wall, it will reverse direction until the beginning of the next cycle (when it begins moving forward again).
How does it fire?
It attempts to fire a 1.0-power bullet whenever it scans an enemy.
How does it dodge bullets?
It moves constantly, in a pattern that is unpredictable for simple targeters.
How does the melee strategy differ from one-on-one strategy?
No difference.
What does it save between rounds and matches?
Nothing between rounds or matches.

Additional Information

Where did you get the name?
Its movement might seem "crazy".
Can I use your code?
Yes, it is released under the Eclipse Public License v1.0.