MW::Agent Class Reference

Inheritance diagram for MW::Agent:
[legend]

List of all members.

Public Member Functions

def __init__
def runAgent
def getMove


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 
)

Initializes a new agent

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:

Generated on Mon Apr 21 22:45:48 2008 for Milks and Wheats by  doxygen 1.5.5