ajout de la logique du plateau

This commit is contained in:
2025-10-29 00:57:30 +01:00
parent 1c127319f9
commit d2a1cb0d65
2 changed files with 218 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package fr.iut_fbleau.HexGame;
import fr.iut_fbleau.GameAPI.*;
/**
* Représente un coup dans le jeu de Hex.
*/
public class HexPly extends AbstractPly {
private final int row;
private final int col;
public HexPly(Player j, int row, int col) {
super(j);
this.row = row;
this.col = col;
}
public int getRow() {
return this.row;
}
public int getCol() {
return this.col;
}
@Override
public String toString() {
return "HexPly{player=" + getPlayer() + ", row=" + row + ", col=" + col + "}";
}
}