forked from fauvet/API_BUT5.5
Base API
This commit is contained in:
5
src/Main.java
Normal file
5
src/Main.java
Normal file
@@ -0,0 +1,5 @@
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello world!");
|
||||
}
|
||||
}
|
14
src/fr/iut_fbleau/but3GameBody/entity/Plateau.java
Normal file
14
src/fr/iut_fbleau/but3GameBody/entity/Plateau.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package fr.iut_fbleau.but3GameBody.entity;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public interface Plateau {
|
||||
|
||||
Player getPlayer();
|
||||
boolean isFinished();
|
||||
Result getResult();
|
||||
Iterator<Ply> givePlies();
|
||||
void doo(Ply ply);
|
||||
void undo(Ply ply);
|
||||
|
||||
}
|
8
src/fr/iut_fbleau/but3GameBody/entity/Player.java
Normal file
8
src/fr/iut_fbleau/but3GameBody/entity/Player.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package fr.iut_fbleau.but3GameBody.entity;
|
||||
|
||||
public enum Player {
|
||||
|
||||
JOUEUR1,
|
||||
JOUEUR2
|
||||
|
||||
}
|
6
src/fr/iut_fbleau/but3GameBody/entity/Ply.java
Normal file
6
src/fr/iut_fbleau/but3GameBody/entity/Ply.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package fr.iut_fbleau.but3GameBody.entity;
|
||||
|
||||
public abstract class Ply {
|
||||
|
||||
|
||||
}
|
9
src/fr/iut_fbleau/but3GameBody/entity/Result.java
Normal file
9
src/fr/iut_fbleau/but3GameBody/entity/Result.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package fr.iut_fbleau.but3GameBody.entity;
|
||||
|
||||
public class Result {
|
||||
|
||||
public final static int GAGNE = 1;
|
||||
public final static int EGALITE = 0;
|
||||
public final static int PERDU = -1;
|
||||
|
||||
}
|
Reference in New Issue
Block a user