commit d4fcdfe189632e4cc93bbebad5e288b24a331b4f Author: MatthisFauvet Date: Wed Oct 9 09:02:19 2024 +0200 Base API diff --git a/but3GameBody.iml b/but3GameBody.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/but3GameBody.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/Main.java b/src/Main.java new file mode 100644 index 0000000..3e59c38 --- /dev/null +++ b/src/Main.java @@ -0,0 +1,5 @@ +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file diff --git a/src/fr/iut_fbleau/but3GameBody/entity/Plateau.java b/src/fr/iut_fbleau/but3GameBody/entity/Plateau.java new file mode 100644 index 0000000..911ada4 --- /dev/null +++ b/src/fr/iut_fbleau/but3GameBody/entity/Plateau.java @@ -0,0 +1,14 @@ +package fr.iut_fbleau.but3GameBody.entity; + +import java.util.Iterator; + +public interface Plateau { + + Player getPlayer(); + boolean isFinished(); + Result getResult(); + Iterator givePlies(); + void doo(Ply ply); + void undo(Ply ply); + +} diff --git a/src/fr/iut_fbleau/but3GameBody/entity/Player.java b/src/fr/iut_fbleau/but3GameBody/entity/Player.java new file mode 100644 index 0000000..fc336ef --- /dev/null +++ b/src/fr/iut_fbleau/but3GameBody/entity/Player.java @@ -0,0 +1,8 @@ +package fr.iut_fbleau.but3GameBody.entity; + +public enum Player { + + JOUEUR1, + JOUEUR2 + +} diff --git a/src/fr/iut_fbleau/but3GameBody/entity/Ply.java b/src/fr/iut_fbleau/but3GameBody/entity/Ply.java new file mode 100644 index 0000000..8268d25 --- /dev/null +++ b/src/fr/iut_fbleau/but3GameBody/entity/Ply.java @@ -0,0 +1,6 @@ +package fr.iut_fbleau.but3GameBody.entity; + +public abstract class Ply { + + +} diff --git a/src/fr/iut_fbleau/but3GameBody/entity/Result.java b/src/fr/iut_fbleau/but3GameBody/entity/Result.java new file mode 100644 index 0000000..aa71e52 --- /dev/null +++ b/src/fr/iut_fbleau/but3GameBody/entity/Result.java @@ -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; + +}