2025-09-18 15:15:37 +02:00
|
|
|
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).
|
2025-09-18 15:33:20 +02:00
|
|
|
private Player iAm;
|
2025-09-18 15:15:37 +02:00
|
|
|
|
|
|
|
// Le joueur réel pourrait avoir besoin de connaître un constructeur de coup?
|
|
|
|
// pas pour l'instant.
|
|
|
|
|
2025-10-09 11:34:16 +02:00
|
|
|
// constructeur à appeler dans le constructeur d'un fils concret avec super.
|
|
|
|
public AbstractGamePlayer(Player p){
|
|
|
|
this.iAm=p;
|
|
|
|
}
|
2025-09-18 15:15:37 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @throws UnsupportedOperationException if the method is not yet implemented
|
|
|
|
*
|
|
|
|
* @throws IllegalStateException if the Situation is already in the bookmarks
|
|
|
|
*/
|
2025-09-18 15:33:20 +02:00
|
|
|
public abstract AbstractPly giveYourMove(IBoard p);
|
2025-09-18 15:15:37 +02:00
|
|
|
|
|
|
|
}
|