/******************************* FILE HEADER **********************************
    Program:          Tic Tac Toe, version 1
    File:             Move.java
    Main File:        TicTacToe1.java
    
    Author:           James D. Skrentny
                      copyright 2000, all rights reserved
    Course:           CS 302, Fall 2000, Lectures 1 & 2
    
    Compiler:         CodeWarrior IDE 4.0 (JDK 1.2)
    Platform:         Windows NT 4.0
 **************************** 80 columns wide *********************************/

/**
 * 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
 **/

/*
 * The following concepts are illustrated:
 *     - a simple constructor
 *     - accessors (see getRow and getCol)
 */

 public class Move {

    private int row, col;   // the coordinates, either 1, 2, or 3
        
    /**         
    * Constructs a Move object at specified row and column.
    * @param specifiedRow move's specified row
    * @param specifiedCol move's specified column
    **/
    public Move (int specifiedRow, int specifiedCol) {
        row = specifiedRow;
        col = specifiedCol;
    }
    
    /**         
    * Gets a move's row coordinate.
    * @return the move's row coordinate
    **/
    public int getRow () {
        return row;
    }
    
    /**         
    * Gets a move's column coordinate.
    * @return the move's column coordinate
    **/
    public int getCol () {
        return col;
    }
    
}
