ajout de la logique du plateau
This commit is contained in:
31
javaAPI/fr/iut_fbleau/HexGame/HexPly.java
Normal file
31
javaAPI/fr/iut_fbleau/HexGame/HexPly.java
Normal 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 + "}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user