From acd757b9788235f6d6a078e4c986de6008f10205 Mon Sep 17 00:00:00 2001 From: Mathis Date: Fri, 3 Jun 2022 22:59:16 +0200 Subject: [PATCH] bugfix method updateRack into class Rack --- src/main/java/latice/model/console/Rack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/latice/model/console/Rack.java b/src/main/java/latice/model/console/Rack.java index 0815b79..bd0db80 100644 --- a/src/main/java/latice/model/console/Rack.java +++ b/src/main/java/latice/model/console/Rack.java @@ -53,7 +53,7 @@ public class Rack { Tile tile; - for (int i = 0; i < 5-this.listRackTile.size() ; i++) { + for (int i = 0; i < 5-(this.listRackTile.size()-1) ; i++) { 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);