diff --git a/bin/game/Match.class b/bin/game/Match.class index 9c98df3..7fb1557 100644 Binary files a/bin/game/Match.class and b/bin/game/Match.class differ diff --git a/src/game/Match.java b/src/game/Match.java index 901873c..8610c6b 100644 --- a/src/game/Match.java +++ b/src/game/Match.java @@ -1,17 +1,20 @@ package game; import java.io.IOException; +import java.util.Random; public class Match extends Thread { Joueur joueur1, joueur2; int tour = 1; private Board board; + private Random rand; public Match(ComsJoueur joueur1Com, ComsJoueur joueur2Com) throws IOException { super(); this.board=new Board(); // random j2/j1 - if (Math.random() > 0.5F) { + rand = new Random(); + if (rand.nextBoolean()) { joueur1 = new Joueur(joueur1Com); joueur2 = new Joueur(joueur2Com); } else {