Commit 091facd5 authored by David LELIEVRE's avatar David LELIEVRE
Browse files

Merge branch 'main' of https://gitlab.univ-nantes.fr/E200206Q/projet-tutore into main

parents 9a977aa9 bd0a5463
# Le fichier executable est "default.appli.java""
### La documentation des classes écrite pendant cette semaine se trouve dans le dossier "/doc"
# Projet S2 : Bataille Navale
......
......@@ -53,7 +53,11 @@ public class ButtonGrilleHautControleur implements ActionListener{
for(Player p : Network.listActivePlayers(HTTP_LOCALHOST)){
String[] n = p.getName().split(":");
boolean init = log.getPL() != log.getG().getInitiator();
String s = log.getG().getId()+log.getG().getInitiator().getName()+init+(log.getCompt());
int i = log.getCompt();
if(log.getPL() == log.getG().getInitiator()){
i--;
}
String s = log.getG().getId()+log.getG().getInitiator().getName()+init+i;
if(n.length == 2){
System.out.println("\1:"+s+"\n2:"+n[0]);
if(n[0].equals(s)){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment