Add toString method to Player
This commit is contained in:
@@ -54,4 +54,9 @@ abstract class Player{
|
|||||||
* @return The cell of the move played.
|
* @return The cell of the move played.
|
||||||
*/
|
*/
|
||||||
public abstract GomokuCell chooseMove(GomokuBoard board);
|
public abstract GomokuCell chooseMove(GomokuBoard board);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return this.getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user