cs175:robocode_lab_-_circlebot1_zigbot1_randomturnbot1
Table of Contents
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.
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.
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
cs175/robocode_lab_-_circlebot1_zigbot1_randomturnbot1.txt · Last modified: 2014/09/25 00:18 by jchung