Difference between revisions of "Crazy"

From Robowiki
Jump to navigation Jump to search
(Write bot page)
 
m (Add image)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{Infobox Robot
 
{{Infobox Robot
 +
| image          = Crazy.png
 +
| imagesize      = 100
 
| author          = Mathew Nelson, [[User:FlemmingLarsen|Flemming N. Larsen]]
 
| author          = Mathew Nelson, [[User:FlemmingLarsen|Flemming N. Larsen]]
 
| extends        = [[AdvancedRobot]]
 
| extends        = [[AdvancedRobot]]
Line 23: Line 25:
 
:* 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 41:
 
== 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__

Latest revision as of 19:49, 14 October 2017

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.