-
Notifications
You must be signed in to change notification settings - Fork 0
/
Move.java
32 lines (26 loc) · 1.1 KB
/
Move.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/****************************************************************************************************************************************************
* @Author: Corey M. Moura
* @Date: March 1, 2018
* @Professor: Dr. Trafftz
* @Project: Project 3 of CS163: Chess Game, player vs computer
* @Notes:
*
*
/****************************************************************************************************************************************************/
public class Move
{
/** Public variables Which are accessed through the ChessModel Class **/
public int fromRow, fromColumn, toRow, toColumn;
public Move() {
}
public Move(int fromRow, int fromColumn, int toRow, int toColumn) {
this.fromRow = fromRow;
this.fromColumn = fromColumn;
this.toRow = toRow;
this.toColumn = toColumn;
}
@Override
public String toString() {
return "Move [fromRow=" + fromRow + ", fromColumn=" + fromColumn + ", toRow=" + toRow + ", toColumn=" + toColumn + "]";
}
}