mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
Added re-playability
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
public class HighIQGame {
|
||||
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"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user