bugfix method updateRack in Rack

master
Mathis 2022-06-04 18:54:52 +02:00
parent abc6668bff
commit 30623929e0
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ public class Rack {
public void updateRack() { public void updateRack() {
Tile tile; Tile tile;
System.out.println("nomdre de tuile dans le rack : " + this.listRackTile.size());
for (int i = 0; i < 5-(this.listRackTile.size()-1) ; i++) { for (int i = this.listRackTile.size(); i < 5 ; i++) {
int index = (int)(Math.random()*( ((this.deck.getListTile()).size()-1)-0+1)+0); //(int)(Math.random()*(max-min+1)+min); int index = (int)(Math.random()*( ((this.deck.getListTile()).size()-1)-0+1)+0); //(int)(Math.random()*(max-min+1)+min);
tile = (this.deck.getListTile()).get(index); tile = (this.deck.getListTile()).get(index);