File tree Expand file tree Collapse file tree
app/src/main/java/io/github/project516/NumberGuessingGame Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 */
77public class CheckGuess {
88 /**
9- * Validates that a guess is within the acceptable range (1-100 ).
9+ * Validates that a guess is within the acceptable range (1-101 ).
1010 *
1111 * @param guess the user's guess to validate
1212 * @throws IllegalArgumentException if the guess is less than 1 or greater than 101
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ public class RandomNumber {
1212 Random random = new Random ();
1313
1414 /**
15- * Generates a random integer between 0 and the specified maximum value (inclusive).
15+ * Generates a random integer between 0 (inclusive) and the specified maximum value (inclusive).
1616 *
17- * @param max the maximum value for the random number
18- * @return a random integer between 0 and max (inclusive)
17+ * @param max the maximum value for the random number (inclusive)
18+ * @return a random integer in the range [0, max]
1919 */
2020 int number (int max ) {
2121
Original file line number Diff line number Diff line change 55import java .io .InputStream ;
66import java .io .InputStreamReader ;
77
8- /**
9- * Reads version information for the Number Guessing Game. Currently returns a placeholder version
10- * string.
11- */
8+ /** Reads version information for the Number Guessing Game from the version.txt resource file. */
129public class ReadVersionFile {
1310 /**
1411 * Retrieves the current version of the game by reading from the version.txt resource file.
You can’t perform that action at this time.
0 commit comments