User Tools

Site Tools


cs175:robocode_lab_-_circlebot1_zigbot1_randomturnbot1

CircleBot1, ZigBot1, RandomTurnBot1


CircleBot1

In Robocode, create CircleBot1 which does the following:

  • Runs in a circle.
  • Must use an int instance variable to change direction of circle.

Link to source code

ZigBot1

In Robocode, create ZigBot1 which does the following:

  • Runs in a zigzag pattern by turning right 45° during one turn and then turning left 45° during the next turn, and so on.

Link to source code

RandomTurnBot1

Using what we covered in the Using Objects lab, create RandomTurnBot1 which does the following:

  • Does one of the three following things at random during a turn:
    • turn right 45°, go ahead by 50
    • turn left 45°, go ahead by 50
    • don't turn, go ahead by 50

Link to source code


cs175/robocode_lab_-_circlebot1_zigbot1_randomturnbot1.txt · Last modified: 2014/09/25 00:18 by jchung

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki