Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tristan MAISONNEUVE
projetS2-2021-23-LJ
Commits
faa54a79
Commit
faa54a79
authored
Jun 24, 2021
by
Jolan RENOUX
Browse files
maj appp2
parent
0b9c4d16
Changes
2
Hide whitespace changes
Inline
Side-by-side
out/production/battleship-student-project-2021/Application.class
View file @
faa54a79
No preview for this file type
src/Application.java
View file @
faa54a79
...
...
@@ -73,6 +73,7 @@ public class Application {
while
(
done
)
{
if
(
pf
.
fc
.
getChoix
()
==
1
)
{
//rejoindre
System
.
out
.
println
(
"REJOINDRE PARTIE"
);
try
{
jeu
=
pf
.
fc
.
getJeu
();
Network
.
joinGame
(
url
,
pf
.
fc
.
getJeu
(),
jaquie
,
fleet
);
...
...
@@ -80,6 +81,7 @@ public class Application {
done
=
true
;
}
else
if
(
pf
.
fc
.
getChoix
()
==
2
)
{
//creer partie
System
.
out
.
println
(
"CREER PARTIE"
);
try
{
jeu
=
Network
.
initNewGame
(
url
,
jaquie
,
fleet
);
}
...
...
@@ -87,6 +89,7 @@ public class Application {
done
=
true
;
}
else
if
(
pf
.
fc
.
getChoix
()
==
0
)
{
//pas encore choisi
System
.
out
.
print
(
"."
);
}
else
{
//probleme
System
.
out
.
println
(
"PROBLEME"
);
...
...
Write
Preview
Markdown
is supported
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