synchronized public void run() { try{ this.ni.waitInfos(); this.areaSize = this.ni.sendInfos(this.name); this.gui.repaint(); State state; String message = new String(); for(;;) { //pour pas trop stressé le joueur ;) try{ Thread.sleep(JTronGame.waitBeforeBegin); } catch(InterruptedException e){} this.gui.setStatus("Waiting for more player..."); this.players = this.ni.waitNewRound(); this.gui.waitReady(); //attends que l'utilisateur soit prêt this.gui.setStatus("Wait for others players ready"); this.ni.waitRoundStart(); this.gui.setStatus("The round has started"); boolean finish = false; while(!finish) { this.ni.waitMoveAsk(); this.ni.sendMove(this.gui.getLastDirection()); state = this.ni.waitRefresh(); PlayerBase player; Vector playerRemove = new Vector(); for(int i=0; i