|
|||||||||
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.PentePerceptEndgame
public class PentePerceptEndgame
A percept received at the end of the game, indicating the winner if any.
Nested Class Summary | |
---|---|
static class |
PentePerceptEndgame.GameResult
Possible outcomes of a game. |
Constructor Summary | |
---|---|
PentePerceptEndgame(PentePerceptEndgame.GameResult theResult,
java.lang.Integer theWinner)
Constructs a new Endgame percept with the given result and winner (if any). |
Method Summary | |
---|---|
PentePerceptEndgame.GameResult |
getGameResult()
Returns whether the player won, lost, or draw (drew?). |
java.lang.Integer |
winnerTurnNumber()
Returns the turn number of the winner. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PentePerceptEndgame(PentePerceptEndgame.GameResult theResult, java.lang.Integer theWinner)
theResult
- theWinner,
- may be null if the result is Draw.Method Detail |
---|
public PentePerceptEndgame.GameResult getGameResult()
public java.lang.Integer winnerTurnNumber()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |