1er commit

This commit is contained in:
2025-10-16 10:12:11 +02:00
commit 296238a77a
8 changed files with 356 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
package fr.iut_fbleau.GameAPI;
import java.util.Iterator;
/**
* The abstract class for a game Player.
*/
public abstract class AbstractGamePlayer {
// not a band, but which type of player I am in the game (PLAYER1 or PLAYER2).
private Player iAm;
// Le joueur réel pourrait avoir besoin de connaître un constructeur de coup?
// pas pour l'instant.
// constructeur à appeler dans le constructeur d'un fils concret avec super.
public AbstractGamePlayer(Player p){
this.iAm=p;
}
/**
*
*
* @throws UnsupportedOperationException if the method is not yet implemented
*
* @throws IllegalStateException if the Situation is already in the bookmarks
*/
public abstract AbstractPly giveYourMove(IBoard p);
}