forked from fauvet/API_BUT5.5
Base API
This commit is contained in:
commit
d4fcdfe189
11
but3GameBody.iml
Normal file
11
but3GameBody.iml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
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;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user