From 85d59210513ae96412e06e0b56842b7e19232927 Mon Sep 17 00:00:00 2001 From: mo Date: Tue, 18 Jun 2019 17:56:27 -0600 Subject: add description of the code --- src/Q4/RandomSumGame.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Q4/RandomSumGame.java') diff --git a/src/Q4/RandomSumGame.java b/src/Q4/RandomSumGame.java index 06204ac..183498b 100644 --- a/src/Q4/RandomSumGame.java +++ b/src/Q4/RandomSumGame.java @@ -12,14 +12,14 @@ import java.io.*; import java.util.*; public class RandomSumGame { - private boolean start; + private boolean start = true; private int d1 = 0; private int d2 = 0; private int sum = 0; private int valuePoint = 0; private int wins = 0; private int losses = 0; - private String status; + private String status = ""; private PrintStream out; /** @@ -56,7 +56,8 @@ public class RandomSumGame { } /** - * Plays a roll of the given dice. + * Plays a roll of the given dice. This is a method overload of the + * previous play method. * * @param d1 the value of the roll for the first dice * @param d2 the value of the roll for the second dice -- cgit v1.2.3