java.lang.Objectedu.gwu.champAlg.TicMove
public class TicMove
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 |
|---|
public int x
public int y
public java.lang.String annotation
| Constructor Detail |
|---|
public TicMove(int x,
int y)
x - an int valuey - an int value
public TicMove(int x,
int y,
java.lang.String annot)
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectString value