edu.columbia.awh2101
Class PenteAgentProgram

java.lang.Object
  extended by edu.columbia.awh2101.PenteAgentProgram
All Implemented Interfaces:
AgentProgram<PenteAction,PentePercept>

public class PenteAgentProgram
extends java.lang.Object
implements AgentProgram<PenteAction,PentePercept>

Aaron's random Pente player.

Version:
0.1

User: aaron Date: Sep 25, 2006 Time: 10:06:31 AM

Author:
aaron@cs

Field Summary
static java.lang.String author
           
static java.lang.String description
           
 
Constructor Summary
PenteAgentProgram()
           
 
Method Summary
 java.lang.String getAuthor()
          Should return the UNI of the author of the program.
 java.lang.String getDescription()
          Should return a short description of the program, used to distinguish different agent agentprograms by the same author.
 PenteAction nextAction(java.util.Set<PentePercept> thePercepts)
          The essence of agent AI: Given a set of percepts, chooses an action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

author

public static final java.lang.String author
See Also:
Constant Field Values

description

public static final java.lang.String description
See Also:
Constant Field Values
Constructor Detail

PenteAgentProgram

public PenteAgentProgram()
Method Detail

nextAction

public PenteAction nextAction(java.util.Set<PentePercept> thePercepts)
The essence of agent AI: Given a set of percepts, chooses an action.

Specified by:
nextAction in interface AgentProgram<PenteAction,PentePercept>
Parameters:
thePercepts - set of percepts from the environment
Returns:
the next action.
See Also:
"Russell & Norvig p.44 (2.4)"

getAuthor

public java.lang.String getAuthor()
Should return the UNI of the author of the program.

Specified by:
getAuthor in interface AgentProgram<PenteAction,PentePercept>
Returns:
a UNI, e.g. "awh2101"

getDescription

public java.lang.String getDescription()
Should return a short description of the program, used to distinguish different agent agentprograms by the same author. e.g. "SMA* search with a crappy heuristic function"

Specified by:
getDescription in interface AgentProgram<PenteAction,PentePercept>
Returns:
short description of program