org.vizzini.example.tictactoe
Class Adjudicator
java.lang.Object
org.vizzini.game.AbstractAdjudicator
org.vizzini.game.boardgame.AbstractGridBoardAdjudicator
org.vizzini.example.tictactoe.Adjudicator
- All Implemented Interfaces:
- IGridBoardAdjudicator, IAdjudicator
public class Adjudicator
- extends AbstractGridBoardAdjudicator
Provides an adjudicator for tic-tac-toe.
- Since:
- v0.1
- Version:
- v0.3
- Author:
- Jeffrey M. Thompson
Constructor Summary |
Adjudicator()
Construct this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Adjudicator
public Adjudicator()
- Construct this object.
- Since:
- v0.2
isActionLegal
public boolean isActionLegal(IEnvironment environment,
IAction action)
- Return true if the given action is legal in the given environment.
- Parameters:
environment
- The environment of interest.action
- The action in question.
- Returns:
- true if the given action is legal in the given environment.
- Since:
- v0.1
isGameOver
public boolean isGameOver(IEnvironment environment)
- Return true if one of the agents has won, or there are no more open
positions.
- Parameters:
environment
- The environment of interest.- Since:
- v0.1
isGoal
public boolean isGoal(IEnvironment environment)
- Return true if one of the agents has won. If no one has won, return
false.
- Parameters:
environment
- The environment of interest.- Since:
- v0.1
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |