jaige.games.ataxx.ai
Class AtaxxAI

java.lang.Object
  extended by jaige.Player
      extended by jaige.AI
          extended by jaige.games.ataxx.ai.AtaxxAI
All Implemented Interfaces:
GameListener, TurnListener

public abstract class AtaxxAI
extends AI


Field Summary
protected  Cell[][] cells
          These cells are set by the Hex game, and can be read by the AI.
 
Constructor Summary
AtaxxAI()
           
 
Method Summary
 boolean paintPlayerPanel(java.awt.Graphics g, int score, int width, int height)
           
 void setCells(Cell[][] cells)
          Sets the cells for this AI to use.
 
Methods inherited from class jaige.AI
getAIName, getAuthor, getInfo, getVersion, initialize, makeMove, uninitialize
 
Methods inherited from class jaige.Player
getColor, getName, getOrientation, setColor, setName, setOrientation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jaige.event.TurnListener
processTurnEvent
 

Field Detail

cells

protected Cell[][] cells
These cells are set by the Hex game, and can be read by the AI. Only the color can be changed for debugging purposes. All other attributes of the Cell cannot be set.

Constructor Detail

AtaxxAI

public AtaxxAI()
Method Detail

setCells

public void setCells(Cell[][] cells)
Sets the cells for this AI to use.

Parameters:
cells - the cells for this AI to use.

paintPlayerPanel

public boolean paintPlayerPanel(java.awt.Graphics g,
                                int score,
                                int width,
                                int height)