Documentation
This class implements a remote control agent. It overloads the
Abstract_Agent class. The agent is not an intelligent agent
but it is remote controlled by the user using the keyboard.
Action select_action(Percept percept)
-
This public function replaces the virtual function in the
parent class. Each time the function is called it asks the user
for a command in the form of key followed by <Enter>.
The following keys are valid:
- F or f: move forward.
- R or r: turn right by 90 degrees.
- l or l: turn left by 90 degrees.
- G or g: try to grab a piece of gold.
- S or s: shoot an arrow.
- C or c: try to climb out of the cave
- Returns:
- The action taken by the agent
- Parameters:
- percept - the percept the agent perceives
- This class has no child classes.
- Author:
- J. Eggermont
- Version:
- 1.0
alphabetic index hierarchy of classes
voor vragen en opmerkingen kun je een e-mailtje sturen naar:
jeggermo@wi.leidenuniv.nl
generated by doc++