/Robot

Challenger for Robot battle

Primary LanguageJava

Vhare Robot Strategy

Below is my strategy for how the robot will win all the matches against any robot it battles

Movement

  • Use Corners robot code to move to corners at start of battle, and look for a robot to attack
  • Once robot detect Use Tracker robot to attack robot and fire

Defence

  • If we hit a robot, fire and move back
  • if we get by a bullet turn and move perpendicular to the bullet to seesaw

How to run game

Compile code

  1. Download code from https://github.com/robo-code/robocode
  2. On terminal where you downloaded code then run ./robocode.sh
  3. On GUI tabs click Robot -> Source Editor -> File -> Open -> NemushungwaVharevhawe.java
  4. File -> Save
  5. then compile robot, by clicking on Compiler

Run battle

  1. On the GUI click Battle -> New
  2. Under package select vhare, then the NemushungwaVhare robot
  3. You can make it challenge any other robot
  4. Click battle