Skip to content

Commit acd167b

Browse files
Squelette de Output
Création des définitions des fonctions de output, (pas encore implémentée)
1 parent 8329130 commit acd167b

File tree

1 file changed

+46
-1
lines changed
  • Projet_Maven/src/main/java/ecn/infosi/projet_maven

1 file changed

+46
-1
lines changed

Projet_Maven/src/main/java/ecn/infosi/projet_maven/Output.java

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,51 @@
88
*
99
* @author Clément
1010
*/
11-
public class Output {
11+
public class Output {
12+
public void affichageDebutJeu()
13+
{
14+
15+
}
1216

17+
public void affichageTourJeu(EtatJeu etatJeu)
18+
{
19+
20+
}
21+
22+
public void affichageVictoire(EtatJeu etatJeu)
23+
{
24+
25+
}
26+
27+
public void affichageDefaite(EtatJeu etatJeu)
28+
{
29+
30+
31+
}
32+
33+
private void dessinPendu(double nbErreurs, double nbErreursMax)
34+
{
35+
if(nbErreurs >= nbErreursMax-0.001)
36+
{
37+
System.out.println(" +---+\n" +
38+
" | |\n" +
39+
" O |\n" +
40+
"/|\\ |\n" +
41+
" | |\n" +
42+
"/ \\ |\n" +
43+
"=======");
44+
return;
45+
}
46+
if(nbErreurs >= nbErreursMax-0.001)
47+
{
48+
System.out.println(" +---+\n" +
49+
" | |\n" +
50+
" O |\n" +
51+
"/|\\ |\n" +
52+
" | |\n" +
53+
"/ \\ |\n" +
54+
"=======");
55+
return;
56+
}
57+
}
1358
}

0 commit comments

Comments
 (0)