Class TestIC

java.lang.Object
  |
  +--TestIC

public class TestIC
extends java.lang.Object


Constructor Summary
TestIC(char[][] newBoard)
          TestIC - constructor for an instance
 
Method Summary
 void drawBoard(char turn)
          drawBoard - draws the board on the screen using ascii art
 int getInput()
          getInput - reads input from the user via util.readInteger()
 void printMessage(java.lang.String msg)
          printMessage - prints an particular String to the screen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestIC

public TestIC(char[][] newBoard)
TestIC - constructor for an instance
Parameters:
newBoard - Board reference from the driver
Method Detail

drawBoard

public void drawBoard(char turn)
drawBoard - draws the board on the screen using ascii art; so that your program works with our interface, you must have row 0 be the topmost row and that your array is in column-major order
Parameters:
turn - character representing the current turn

printMessage

public void printMessage(java.lang.String msg)
printMessage - prints an particular String to the screen
Parameters:
msg - String message to be printed

getInput

public int getInput()
getInput - reads input from the user via util.readInteger()
Returns:
int representing what the user typed in