Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Florian MOINARD
DesignPatternProject
Commits
313a0fbe
Commit
313a0fbe
authored
Jan 23, 2022
by
Florian MOINARD
Browse files
Merge branch 'master' into 'main'
Master See merge request
!5
parents
d06b2aaa
b438e762
Changes
3
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
313a0fbe
...
...
@@ -5,12 +5,68 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.example
</groupId>
<artifactId>
Design
Pattern
Project
</artifactId>
<artifactId>
DesignPatternProject
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
13
</maven.compiler.source>
<maven.compiler.target>
13
</maven.compiler.target>
</properties>
<build>
<pluginManagement>
<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
<artifactId>
maven-clean-plugin
</artifactId>
<version>
3.1.0
</version>
</plugin>
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
3.0.2
</version>
</plugin>
<plugin>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.8.0
</version>
</plugin>
<plugin>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.22.1
</version>
</plugin>
<plugin>
<artifactId>
maven-jar-plugin
</artifactId>
<version>
3.0.2
</version>
</plugin>
<plugin>
<artifactId>
maven-install-plugin
</artifactId>
<version>
2.5.2
</version>
</plugin>
<plugin>
<artifactId>
maven-deploy-plugin
</artifactId>
<version>
2.8.2
</version>
</plugin>
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
<plugin>
<artifactId>
maven-site-plugin
</artifactId>
<version>
3.7.1
</version>
</plugin>
<plugin>
<artifactId>
maven-project-info-reports-plugin
</artifactId>
<version>
3.0.0
</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
8
</source>
<target>
8
</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
src/main/java/Game.java
View file @
313a0fbe
...
...
@@ -44,7 +44,7 @@ public class Game {
System
.
out
.
println
(
ANSI_BLUE
+
"Bienvenue dans la boutique où vous pouvez remporter vos produits !"
);
System
.
out
.
println
(
"Pour les remporter, c'est simple, il vous suffit de deviner les prix des produits"
);
System
.
out
.
println
(
"Vous aurez 4 produits à deviner avec 1
5
essais à chaque fois ! \n"
+
ANSI_RESET
);
System
.
out
.
println
(
"Vous aurez 4 produits à deviner avec 1
0
essais à chaque fois ! \n"
+
ANSI_RESET
);
//Pour chaque produit dans la liste lancer une partie
for
(
Produit
produit
:
tabProduit
)
{
...
...
src/main/java/JustePrix.java
View file @
313a0fbe
...
...
@@ -8,8 +8,4 @@ public class JustePrix {
public
void
setEtat
(
Etat
etat
)
{
this
.
etat
=
etat
;
}
public
Etat
getEtat
()
{
return
etat
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment