Chapter 6 Fishing Game
Chapter 6 Fishing Game
Random;
import java.util.Scanner;
System.out.println("Good Catch");
} else {
System.out.println("Keep trying");
int totalPoints = 0;
boolean continueFishing = true;
// Game loop
while (continueFishing) {
if (userInput.equals("no")) {
continueFishing = false;
} else if (userInput.equals("yes")) {
// sim 0 to 5
totalPoints += points[roll];
} else {
displayMessage(totalPoints);
scanner.close();