Changes between Version 2 and Version 3 of ControlSystems/SoftwareTeam/Training/VirtualTraining/JuniorRobot


Ignore:
Timestamp:
Aug 31, 2020, 11:44:44 PM (5 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/VirtualTraining/JuniorRobot

    v2 v3  
    7878
    7979=== Observers ===
    80 The Junior Robot class defines several observer methods that are invoked automatically when something happens in the battle.  For example, as the robot scans its surroundings, if it sees another robot in front of it, the onScannedRobot() method is invoked.  In this case, the robot will fire when it sees another robot in front of it.
     80The Junior Robot class defines several observer methods that are invoked automatically when something happens in the battle.  (you'll sometimes hear observer methods referred to as "listeners" or "callbacks").  For example, as the robot scans its surroundings, if it sees another robot in front of it, the onScannedRobot() method is invoked.  In this case, the robot will fire when it sees another robot in front of it.
    8181{{{
    8282        }
     
    110110}
    111111}}}
     112
     113== Exercises ==
     1141. Run RoboJojo again and observe how the behaviors of the robot relate to the methods.
     1151. Change the methods in the robot's main loop to make its behavior more interesting, try making the robot travel in a square and fire its gun at each corner.