org.vizzini.game.boardgame
Interface IGridBoardAdjudicator

All Superinterfaces:
IAdjudicator
All Known Subinterfaces:
IChessAdjudicator
All Known Implementing Classes:
AbstractGridBoardAdjudicator, Adjudicator, Adjudicator, ChessAdjudicator

public interface IGridBoardAdjudicator
extends IAdjudicator

Defines methods required by grid board adjudicators in the game framework.

Since:
v0.2
Version:
v0.2
Author:
Jeffrey M. Thompson

Method Summary
 boolean agentHasLine(IEnvironment environment, IAgent agent0, IAgent agent1, int startF, int startR, int startL, int df, int dr, int dl)
          Return true if an agent has tokens in the line specified by the other arguments.
 Set getWinningPositions()
           
 
Methods inherited from interface org.vizzini.game.IAdjudicator
areActionsLegal, getWinner, isActionLegal, isGameOver, isGoal, reset, setWinner
 

Method Detail

agentHasLine

boolean agentHasLine(IEnvironment environment,
                     IAgent agent0,
                     IAgent agent1,
                     int startF,
                     int startR,
                     int startL,
                     int df,
                     int dr,
                     int dl)
Return true if an agent has tokens in the line specified by the other arguments. Note that this method assumes two agents.

Parameters:
environment - Environment of interest.
agent0 - First agent.
agent1 - Second agent.
startF - Starting file.
startR - Starting rank.
startL - Starting level.
df - Delta in the file direction.
dr - Delta in the rank direction.
dl - Delta in the level direction.
Since:
v0.2

getWinningPositions

Set getWinningPositions()
Returns:
Return winningPositions.
Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02