31 lines
		
	
	
		
			782 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			782 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| 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);
 | |
| 
 | |
| }
 |