diff --git a/projet.use b/projet.use
index 9bdeba3..6ce5242 100644
--- a/projet.use
+++ b/projet.use
@@ -61,7 +61,10 @@ attributes
type: TypeCase
operations
changerEtat(nouveauEtat: TypeCase)
- getEtat(): TypeCase
+ getEtat(): TypeCase
+constraints
+ inv:
+ plateau.cases->select(c: Case | c.x = x and c.y = y)->size() = 1
end
class Bateau
diff --git a/projet_default.clt b/projet_default.clt
index da40e34..c1e9334 100644
--- a/projet_default.clt
+++ b/projet_default.clt
@@ -208,18 +208,6 @@
false
-
- plateau
-
- -21.0
- 18.0
- Compose::WayPoint::1
- 8
- 8
- TOP
-
- false
-
1
@@ -232,6 +220,18 @@
false
+
+ plateau
+
+ 69.0
+ -24.0
+ Compose::WayPoint::1
+ 8
+ 8
+ TOP
+
+ false
+
100
@@ -300,18 +300,6 @@
false
-
- coup
-
- 18.0
- 21.0
- Etat::WayPoint::1
- 8
- 8
- TOP
-
- false
-
1
@@ -324,6 +312,18 @@
false
+
+ coup
+
+ 18.0
+ 21.0
+ Etat::WayPoint::1
+ 8
+ 8
+ TOP
+
+ false
+
case
@@ -392,18 +392,6 @@
false
-
- flotte
-
- 105.0
- 0.0
- Appartient::WayPoint::1
- 8
- 8
- TOP
-
- false
-
1
@@ -416,6 +404,18 @@
false
+
+ flotte
+
+ 105.0
+ 0.0
+ Appartient::WayPoint::1
+ 8
+ 8
+ TOP
+
+ false
+
joueur
@@ -508,18 +508,6 @@
false
-
- joueur
-
- -16.0
- -10.0
- Utilise::WayPoint::0
- 8
- 8
- TOP
-
- false
-
1
@@ -532,6 +520,18 @@
false
+
+ joueur
+
+ -16.0
+ -10.0
+ Utilise::WayPoint::0
+ 8
+ 8
+ TOP
+
+ false
+
@@ -576,18 +576,6 @@
false
-
- 1
-
- 0.0
- 0.0
- Joue2::WayPoint::3
- 8
- 8
- BOTTOM
-
- false
-
jeu1
@@ -600,6 +588,18 @@
false
+
+ 1
+
+ 0.0
+ 0.0
+ Joue2::WayPoint::3
+ 8
+ 8
+ BOTTOM
+
+ false
+
joueur2
@@ -688,18 +688,6 @@
false
-
- bateaux
-
- -4.0
- 18.0
- Appartient2::WayPoint::1
- 8
- 8
- TOP
-
- false
-
*
@@ -712,12 +700,12 @@
false
-
- flotte
+
+ bateaux
- 24.0
- 30.0
- Appartient2::WayPoint::0
+ -4.0
+ 18.0
+ Appartient2::WayPoint::1
8
8
TOP
@@ -736,6 +724,18 @@
false
+
+ flotte
+
+ 24.0
+ 30.0
+ Appartient2::WayPoint::0
+ 8
+ 8
+ TOP
+
+ false
+
@@ -804,18 +804,6 @@
false
-
- 1
-
- 0.0
- 0.0
- Joue1::WayPoint::0
- 8
- 8
- BOTTOM
-
- false
-
joueur1
@@ -828,6 +816,18 @@
false
+
+ 1
+
+ 0.0
+ 0.0
+ Joue1::WayPoint::0
+ 8
+ 8
+ BOTTOM
+
+ false
+