aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/MylesAndMore/tumble
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/MylesAndMore/tumble')
-rw-r--r--src/main/java/com/MylesAndMore/tumble/Game.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/MylesAndMore/tumble/Game.java b/src/main/java/com/MylesAndMore/tumble/Game.java
index 7a6512d..887c4ee 100644
--- a/src/main/java/com/MylesAndMore/tumble/Game.java
+++ b/src/main/java/com/MylesAndMore/tumble/Game.java
@@ -36,6 +36,8 @@ public class Game {
private static String gameType;
// The gameState keeps the current state of the game (I'm so creative, I know)
private String gameState;
+ // Define a variable for the roundType
+ private String roundType;
// Initialize a new instance of the Random class for use later
private final Random Random = new Random();
@@ -140,8 +142,10 @@ public class Game {
else if (Objects.equals(gameType, "mixed")) {
if (Random.nextInt(2) == 0) {
generateLayers("shovels");
+ roundType = "shovels";
} else {
generateLayers("snowballs");
+ roundType = "snowballs";
}
}
else {