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)
|
Move
public Move(IPiece piece,
int row,
int col)
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