edu.lhup.ai.tictactoe
Class Move

java.lang.Object
  |
  +--edu.lhup.ai.tictactoe.Move
All Implemented Interfaces:
IMove

class Move
extends Object
implements IMove

A concrete implementation of a move in a tic-tac-toe game. Tic-tac-toe moves contains peices, and a row and column.

This software is for educational purposes only.

Author:
Mark Cohen

Constructor Summary
Move(IPiece piece, int row, int col)
           
 
Method Summary
 int getCol()
           
 IPiece getPiece()
           
 int getRow()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Move

public Move(IPiece piece,
            int row,
            int col)
Method Detail

getRow

public int getRow()

getCol

public int getCol()

getPiece

public IPiece getPiece()
Specified by:
getPiece in interface IMove
Returns:
the piece associated with this move.

toString

public String toString()
Overrides:
toString in class Object