Difference between revisions of "MyFirstRobot"

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          = MyFirstRobot.png
 +
| imagesize      = 100
 
| author          = Mathew Nelson
 
| author          = Mathew Nelson
 
| extends        = [[Robot]]
 
| extends        = [[Robot]]
Line 12: Line 14:
 
== Background Information ==
 
== Background Information ==
 
; What's special about it?
 
; What's special about it?
: MyFirstRobot is very similar to the default code (located in <code>robocode/templates/newrobot.tpt</code>) when creating a new robot through the Robot Editor. The only differences are the contents of the [http://robocode.sourceforge.net/docs/robocode/robocode/Robot.html#onHitByBullet(robocode.HitByBulletEvent) <code>onHitByBullet()</code>] and [http://robocode.sourceforge.net/docs/robocode/robocode/Robot.html#onHitWall(robocode.HitWallEvent) <code>onHitWall()</code>] event handlers.
+
: MyFirstRobot is a [[Sample Bot]] that is very similar to the default code (located in <code>robocode/templates/newrobot.tpt</code>) when creating a new robot through the Robot Editor. The only differences are the contents of the [http://robocode.sourceforge.net/docs/robocode/robocode/Robot.html#onHitByBullet(robocode.HitByBulletEvent) <code>onHitByBullet()</code>] and [http://robocode.sourceforge.net/docs/robocode/robocode/Robot.html#onHitWall(robocode.HitWallEvent) <code>onHitWall()</code>] event handlers.
  
 
; How competitive is it?
 
; How competitive is it?
: It is the fifth-best [[Sample Bot]] in [[MeleeRumble]] (after [[Walls (robot)|Walls]], [[Crazy]], [[SpinBot]], and MyFirstJuniorRobot). It ranks at #379 out of 399.
+
: It is the fifth-best sample bot in [[MeleeRumble]] (after [[Walls (robot)|Walls]], [[Crazy]], [[SpinBot]], and MyFirstJuniorRobot). It ranks at #379 out of 399.
  
 
== Strategy ==
 
== Strategy ==

Latest revision as of 19:50, 14 October 2017

MyFirstRobot
100
Author(s) Mathew Nelson
Extends Robot
Targeting Head-On Targeting
Movement Oscillator Movement, Pattern Movement
Code License Eclipse Public License v1.0

Background Information

What's special about it?
MyFirstRobot is a Sample Bot that is very similar to the default code (located in robocode/templates/newrobot.tpt) when creating a new robot through the Robot Editor. The only differences are the contents of the onHitByBullet() and onHitWall() event handlers.
How competitive is it?
It is the fifth-best sample bot in MeleeRumble (after Walls, Crazy, SpinBot, and MyFirstJuniorRobot). It ranks at #379 out of 399.

Strategy

How does it move?
It moves in an oscillating "seesaw" pattern. It moves forward 100 units, then backward 100 units.
How does it fire?
It attempts to fire a 1.0-power bullet whenever it scans an enemy.
How does it dodge bullets?
When hit by a bullet, it turns perpendicular to the bullet. This logic is quite bad, as the angle-to-turn is not normalized, and the robot stays in the same spot while turning.
How does the melee strategy differ from one-on-one strategy?
No difference.
What does it save between rounds and matches?
Nothing and nothing.

Additional Information

Where did you get the name?
It's a very basic robot.
Can I use your code?
Yes, it is released under the Eclipse Public License v1.0.