bugfix method updateRack in Rack
parent
abc6668bff
commit
30623929e0
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue