====== 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 * [[http://robowiki.net/w/index.php?title=Robocode/Game_Physics#Coordinates_and_Direction_Conventions|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 //[[robocode_lab_-_methodbot1|MethodBot1]]//. [[https://piazza.com/class_profile/get_resource/hzkswvpxv2r2nu/i19sya4jzztce|Link to algorithm]] [[https://piazza.com/class_profile/get_resource/hzkswvpxv2r2nu/i19svrx7fj5370|Link to source code]] ----