[Home]History of ShrapnelDodging

Robo Home | Changes | Preferences | AllPages


Revision 10 . . July 23, 2005 4:16 EST by Jray [added my implementation]
Revision 9 . . April 29, 2003 17:13 EST by proxy-w.ccra-adrc.gc.ca
  

Difference (from prior major revision) (no other diffs)

Added: 13a14,20


I am new to Robocode, and relatively new(pun not intended) to Java and OOP. I used this kind of system in my first bot. It took me an hour or so to get the kinks out, but it runs randomly(or as close as possible, using math.random) and can last a while against more professional bots, like SandboxDT. ;) (this is without my bot firing a single bullet!)

I used it VERY simply, so my bot cycles through an array in the main loop, and checks if the variable in the array node it's at(each node is = to one tick) is true, which means a bullet is going to hit in a few ticks. My bot then randomly decides to move left or right(moving away from a wall if it hit it the move before) So, it does not even determine where the bullet might be, it just gets the heck away from where it is :)

If I did something wrong with using the wiki, feel free to either correct my mistake or yell at me :) --Jray

Robo Home | Changes | Preferences | AllPages
Search: