Fix bug tours, choix fonctionnels

This commit is contained in:
Paul Gross
2020-05-03 17:08:45 +02:00
parent 03499c7191
commit afaef5411b
7 changed files with 40 additions and 26 deletions

View File

@@ -191,12 +191,13 @@ public class Plateau extends Thread{
public void run() {
int nbJoueurs = this.joueurs.size()-1;
int i = 1;
int nbJoueurs = this.joueurs.size();
int i = 0;
System.out.println(nbJoueurs);
while(true) {
Joueur currentJoueur = this.joueurs.get(nbJoueurs % i);
Joueur currentJoueur = this.joueurs.get(i % nbJoueurs);
System.out.println("\n\n\n\n\n");
System.out.println("Au tour de "+currentJoueur.getNom());
System.out.println("Lancement des dés.");