Class Move

java.lang.Object
  |
  +--Move

public class Move
extends java.lang.Object

The Move class represents a player's move on the 3 by 3 grid as a row and column coordinate pair for the game Tic Tac Toe. Bugs: none known


Constructor Summary
Move(int specifiedRow, int specifiedCol)
          Constructs a Move object at specified row and column.
 
Method Summary
 int getCol()
          Gets a move's column coordinate.
 int getRow()
          Gets a move's row coordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Move

public Move(int specifiedRow,
            int specifiedCol)
Constructs a Move object at specified row and column.
Parameters:
specifiedRow - move's specified row
specifiedCol - move's specified column
Method Detail

getRow

public int getRow()
Gets a move's row coordinate.
Returns:
the move's row coordinate

getCol

public int getCol()
Gets a move's column coordinate.
Returns:
the move's column coordinate