Add toString method to Player

This commit is contained in:
Dorian HAMDANI
2025-04-14 09:56:34 +02:00
parent b4966a81f1
commit 06d5b58568

View File

@@ -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();
}
} }