diff --git a/projet.use b/projet.use
index 8f3ed2b..b2292dd 100644
--- a/projet.use
+++ b/projet.use
@@ -41,7 +41,12 @@ end
class Flotte
operations
- ajouterBateau(bateau: Bateau)
+ ajouterBateau(bateau: Bateau)
+constraints
+ inv: bateaux->select(b: Bateau | b.type = TypeBateau::Torpilleur)->size() = 1
+ inv: bateaux->select(b: Bateau | b.type = TypeBateau::Contre_Torpilleur)->size() = 2
+ inv: bateaux->select(b: Bateau | b.type = TypeBateau::Croiseur)->size() = 1
+ inv: bateaux->select(b: Bateau | b.type = TypeBateau::Porte_Avions)->size() = 1
end
class Coup
diff --git a/projet_default.clt b/projet_default.clt
index d431778..6065b11 100644
--- a/projet_default.clt
+++ b/projet_default.clt
@@ -416,18 +416,6 @@
false
-
- joueur
-
- 0.0
- 0.0
- Appartient::WayPoint::0
- 8
- 8
- TOP
-
- false
-
1
@@ -440,6 +428,18 @@
false
+
+ joueur
+
+ 0.0
+ 0.0
+ Appartient::WayPoint::0
+ 8
+ 8
+ TOP
+
+ false
+
@@ -484,18 +484,6 @@
false
-
- 1
-
- 0.0
- 0.0
- Utilise::WayPoint::1
- 8
- 8
- BOTTOM
-
- false
-
plateau
@@ -508,6 +496,18 @@
false
+
+ 1
+
+ 0.0
+ 0.0
+ Utilise::WayPoint::1
+ 8
+ 8
+ BOTTOM
+
+ false
+
joueur
@@ -576,18 +576,6 @@
false
-
- 1
-
- 0.0
- 0.0
- Joue2::WayPoint::1
- 8
- 8
- BOTTOM
-
- false
-
jeu1
@@ -600,12 +588,12 @@
false
-
+
1
0.0
0.0
- Joue2::WayPoint::0
+ Joue2::WayPoint::1
8
8
BOTTOM
@@ -624,6 +612,18 @@
false
+
+ 1
+
+ 0.0
+ 0.0
+ Joue2::WayPoint::0
+ 8
+ 8
+ BOTTOM
+
+ false
+
@@ -692,18 +692,6 @@
false
-
- 1
-
- 0.0
- 0.0
- Appartient2::WayPoint::0
- 8
- 8
- BOTTOM
-
- false
-
flotte
@@ -716,6 +704,18 @@
false
+
+ 1
+
+ 0.0
+ 0.0
+ Appartient2::WayPoint::0
+ 8
+ 8
+ BOTTOM
+
+ false
+
@@ -760,18 +760,6 @@
false
-
- jeu2
-
- 0.0
- 0.0
- Joue1::WayPoint::1
- 8
- 8
- TOP
-
- false
-
1
@@ -784,15 +772,15 @@
false
-
- 1
+
+ jeu2
0.0
0.0
- Joue1::WayPoint::0
+ Joue1::WayPoint::1
8
8
- BOTTOM
+ TOP
false
@@ -808,6 +796,18 @@
false
+
+ 1
+
+ 0.0
+ 0.0
+ Joue1::WayPoint::0
+ 8
+ 8
+ BOTTOM
+
+ false
+
@@ -876,18 +876,6 @@
false
-
- *
-
- 0.0
- 0.0
- Tire::WayPoint::0
- 8
- 8
- BOTTOM
-
- false
-
joueur
@@ -900,6 +888,18 @@
false
+
+ *
+
+ 0.0
+ 0.0
+ Tire::WayPoint::0
+ 8
+ 8
+ BOTTOM
+
+ false
+