From beeaf8540bd0fca5ec3c4e051e06c5807f4144af Mon Sep 17 00:00:00 2001 From: Jonas Wagner Date: Tue, 18 Jan 2022 10:33:37 +0100 Subject: [PATCH] Fix rollDice Method --- src/main/java/Player.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/Player.java b/src/main/java/Player.java index 6cba702..bd5496c 100644 --- a/src/main/java/Player.java +++ b/src/main/java/Player.java @@ -12,6 +12,6 @@ public class Player { } public int rollDice() { - return (int) (Math.random() * 6); + return (int) (Math.random() * 6 + 1); } }