|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.coms4701.agent.environments.pente.PentePerceptGame
public class PentePerceptGame
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.
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 |
---|
public PentePerceptGame(PenteRules theRules, DiscreteRectangle theRectangle, int thisPlayersTurn, int numberOfPlayers, int thisPlayersDepth)
theRules
- theRectangle
- thisPlayersTurn
- numberOfPlayers
- thisPlayersDepth
- Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public PenteRules getRules()
public DiscreteRectangle getBoardRectangle()
The board will always have its lower-left corner at (0,0).
public int getMyTurnNumber()
public int getMySearchDepth()
Players must examine this value and implement an alpha-beta search that cuts off to a heuristic below this depth.
public int getNumberOfPlayers()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |