cs175:robocode_lab_-_nearestwallbot1
NearestWallBot1
1. Develop a workable algorithm to move a robot to the nearest wall. A robot can know the following data that can be used for this algorithm:
- its own x, y coordinates
- the height and width of the battlefield, with origin (0,0) in the lower left corner.
2. Implement the algorithm in NearestWallBot1.
3. Reimplement the algorithm in a void method called goNearestWall that can be called from the robot's main loop. Add goNearestWall to MethodBot1.
cs175/robocode_lab_-_nearestwallbot1.txt · Last modified: 2014/10/14 22:10 by jchung