Révélation des cartes personnage fonctionnel

This commit is contained in:
Paul Gross
2020-05-09 16:23:12 +02:00
parent 3e88a7d1a7
commit b10e068a28
10 changed files with 37 additions and 21 deletions

View File

@@ -191,6 +191,7 @@ public class Plateau extends Thread{
public void initCartePersonnage(List<CartePersonnage> cps) throws Exception {
System.out.println(cps);
int nbJoueurs = this.joueurs.size();
List<CartePersonnage> lcp = new ArrayList<>(nbJoueurs);
@@ -215,6 +216,7 @@ public class Plateau extends Thread{
throw new Exception();
}
System.out.println(lcp);
for(int i = 0; i< nbJoueurs; i++) {
Joueur j = joueurs.get(i);
@@ -229,7 +231,6 @@ public class Plateau extends Thread{
Collections.shuffle(cps);
int nbShadow = nbEquipeShadowHunter;
int nbHunter = nbEquipeShadowHunter;
int nbNeutre = nbNeutres;
@@ -252,6 +253,7 @@ public class Plateau extends Thread{
lcp.add(cp);
}
}
System.out.println(lcp);
return lcp;
}
@@ -260,7 +262,6 @@ public class Plateau extends Thread{
int nbJoueurs = this.joueurs.size();
int i = 0;
System.out.println(nbJoueurs);
while(true) {
Joueur currentJoueur = this.joueurs.get(i % nbJoueurs);