Difference between revisions of "Crazy"

From Robowiki
Jump to navigation Jump to search
(Write bot page)
 
m (Edits)
Line 23: Line 23:
 
:* Turn -180°.
 
:* Turn -180°.
 
:* Turn 180°.
 
:* Turn 180°.
: While moving forward constantly.
+
: 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?
 
; How does it fire?
Line 39: Line 39:
 
== Additional Information ==
 
== Additional Information ==
 
; Where did you get the name?
 
; Where did you get the name?
: The movement might seem "crazy".
+
: Its movement might seem "crazy".
  
 
; Can I use your code?
 
; Can I use your code?
: Yes, it's released under the [http://robocode.sourceforge.net/license/epl-v10.html Eclipse Public License v1.0].
+
: Yes, it is released under the [http://robocode.sourceforge.net/license/epl-v10.html Eclipse Public License v1.0].
 
[[Category:Sample Bots]]
 
[[Category:Sample Bots]]
 
__NOTOC__ __NOEDITSECTION__
 
__NOTOC__ __NOEDITSECTION__

Revision as of 00:41, 11 September 2017

Crazy
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.