edu.gwu.champAlg
Class TicMove

java.lang.Object
  extended by edu.gwu.champAlg.TicMove

public class TicMove
extends java.lang.Object

Use an instance of this class to describe your move. The board uses x,y cartesian coordinates. x goes left to right, y bottom to top. By providing coordinates for a cell, the system fills in the appropriate symbol 'O' or 'X' depending on whose turn it is.


Field Summary
 java.lang.String annotation
           
 int x
          The x coordinate of the square you want to fill.
 int y
          The y coordinate of the square you want to fill.
 
Constructor Summary
TicMove(int x, int y)
          Use this constructor to create an instance.
TicMove(int x, int y, java.lang.String annot)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String toString()
          Useful in debugging.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x
The x coordinate of the square you want to fill.


y

public int y
The y coordinate of the square you want to fill.


annotation

public java.lang.String annotation
Constructor Detail

TicMove

public TicMove(int x,
               int y)
Use this constructor to create an instance.

Parameters:
x - an int value
y - an int value

TicMove

public TicMove(int x,
               int y,
               java.lang.String annot)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Useful in debugging.

Overrides:
toString in class java.lang.Object
Returns:
a String value