Class AI

java.lang.Object
  extended by AI

public class AI
extends java.lang.Object

The AI that will be running the computer player


Constructor Summary
AI()
          Defqault constructor.
AI(int howSmart)
          Contructor for tweaking the intelligence of the AI.
 
Method Summary
 java.lang.String getIntro()
          returns an introduction string.
 java.lang.String getName()
          Returns the name based on intelligence of the AI.
 java.awt.Point getNextShot()
          Gets the next target.
 java.lang.String getPronoun()
          Returns a pronoun.
 void print(Board board)
          Prints the player's board.
 void printForOpponent(Board board)
           
 void reportStatus(int status)
          Uses parser to display the status
 Board setupBoard(int x, int y)
          Sets up the board based on the inputs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AI

public AI()
Defqault constructor.


AI

public AI(int howSmart)
Contructor for tweaking the intelligence of the AI.

Parameters:
howSmart - defines the intelligence of the AI.
Method Detail

getIntro

public java.lang.String getIntro()
returns an introduction string.

Returns:
the intro string.

getPronoun

public java.lang.String getPronoun()
Returns a pronoun.

Returns:
the pronoun

getName

public java.lang.String getName()
Returns the name based on intelligence of the AI.

Returns:
the name of the AI.

print

public void print(Board board)
Prints the player's board.

Parameters:
board - the board.

printForOpponent

public void printForOpponent(Board board)

setupBoard

public Board setupBoard(int x,
                        int y)
Sets up the board based on the inputs

Parameters:
x - the x-coordinate of the board.
y - the y-coordinate of the board.
Returns:
the board

getNextShot

public java.awt.Point getNextShot()
Gets the next target.

Returns:
the location of the target.

reportStatus

public void reportStatus(int status)
Uses parser to display the status

Parameters:
status - the status of the shot.