Added re-playability

This commit is contained in:
Thomas Kwashnak
2022-01-06 11:38:17 -05:00
committed by GitHub
parent 821ae4befe
commit 048b9c31a2

View File

@@ -1,5 +1,11 @@
import java.util.Scanner;
public class HighIQGame { public class HighIQGame {
public static void main(String[] args) { public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
do {
new HighIQ(scanner).play();
System.out.println("PLAY AGAIN (YES OR NO)");
} while(scanner.nextLine().toLowerCase().equals("yes"));
} }
} }