edu.columbia.cs.coms4701.agent.environments.pente
Class PentePerceptGame

java.lang.Object
  extended by edu.columbia.cs.coms4701.agent.environments.pente.PentePerceptGame
All Implemented Interfaces:
AgentPercept, PentePercept

public class PentePerceptGame
extends java.lang.Object
implements PentePercept

Percept received just once, at the beginning of the game, indicating the basic setup of this game instance -- the size of the board, the operating rules, how many players there are, and which turn # your agent is assigned.

Version:
0.1

User: aaron Date: Sep 25, 2006 Time: 11:05:48 AM

Author:
aaron@cs

Constructor Summary
PentePerceptGame(PenteRules theRules, DiscreteRectangle theRectangle, int thisPlayersTurn, int numberOfPlayers, int thisPlayersDepth)
          Construct a new Game percept, with the given rules, rectangle, and turn number.
 
Method Summary
 DiscreteRectangle getBoardRectangle()
          Returns a rectangle indicating the size of the board.
 int getMySearchDepth()
          Returns the maximum search depth assigned to this player.
 int getMyTurnNumber()
          Returns the turn number assigned to your agent.
 int getNumberOfPlayers()
          Returns how many players are in this game.
 PenteRules getRules()
          Indicates which rules are in operation for this game.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PentePerceptGame

public PentePerceptGame(PenteRules theRules,
                        DiscreteRectangle theRectangle,
                        int thisPlayersTurn,
                        int numberOfPlayers,
                        int thisPlayersDepth)
Construct a new Game percept, with the given rules, rectangle, and turn number.

Parameters:
theRules -
theRectangle -
thisPlayersTurn -
numberOfPlayers -
thisPlayersDepth -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRules

public PenteRules getRules()
Indicates which rules are in operation for this game.

Returns:
a ruleset

getBoardRectangle

public DiscreteRectangle getBoardRectangle()
Returns a rectangle indicating the size of the board.

The board will always have its lower-left corner at (0,0).

Returns:
the board's rectangle

getMyTurnNumber

public int getMyTurnNumber()
Returns the turn number assigned to your agent.


getMySearchDepth

public int getMySearchDepth()
Returns the maximum search depth assigned to this player.

Players must examine this value and implement an alpha-beta search that cuts off to a heuristic below this depth.

Returns:
a maximum search depth

getNumberOfPlayers

public int getNumberOfPlayers()
Returns how many players are in this game.

Returns:
an integer