MethodBot1


In robocode, create MethodBot1. MethodBot1 should have the following void methods defined from previous robots:

  1. moveDefault: Moves robot in the default (beginner) pattern
  2. moveCircle: Moves robot in a circle
  3. moveFigure8: Moves robot in figure eight pattern
  4. moveZigzag: Moves robot in zigzag pattern (45° left and right)
  5. moveRandom: Moves robot in a random pattern (45° left and right)

You should be able to call any of these methods from the robot main loop.

See robot source code.