User Tools

Site Tools


cs175:robocode_lab_-_methodbot1

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.


cs175/robocode_lab_-_methodbot1.txt · Last modified: 2014/10/03 02:19 by jchung

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki