MW::Agent Class Reference
List of all members.
Detailed Description
This is the superclass for all three agents, the searcher,
learner, and heuristic agent. It contains generic functions
and variables common to all three
Member Function Documentation
| def MW::Agent::__init__ |
( |
|
self, |
|
|
|
gameSize, |
|
|
|
networks = None | |
|
) |
| | |
| def MW::Agent::runAgent |
( |
|
self, |
|
|
|
trials | |
|
) |
| | |
Runs an agent for a specified number of trials by creating
a new game for each trial, running the game with the designated agent
making the decisions for the players, and collecting stats about
the trials that were executed. The networks the trials were run on
are returned at the end of the method, so that other tests may use
the same networks for consistency.
| def MW::Agent::getMove |
( |
|
self, |
|
|
|
player | |
|
) |
| | |
Since the agents determine all of the moves before they are
actually made by the players, this function simply looks up
the move that the agent has determined the player should
make and returns it.
The documentation for this class was generated from the following file:
- C:/Documents and Settings/Tony/Desktop/workspace/MW/src/MW.py