Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Asterroth committed Nov 28, 2023
1 parent e884ff8 commit 62c59f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/hexlet/code/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
printMenu();
switch (scanner.next()) {
// case "1" -> Engine.greeter();
case "1" -> Engine.runGame(null, null, true);
case "2" -> Even.genGame();
case "3" -> Calc.genGame();
Expand Down
14 changes: 0 additions & 14 deletions app/src/main/java/hexlet/code/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ public final class Engine {
// Main method running the games
public static void runGame(String gameDescription, String[][] gameData, boolean greeter) {
Scanner scan = new Scanner(System.in);
//var player = greeter();

String player;
System.out.println("Welcome to the Brain Games!");
System.out.print("May I have your name? ");
Expand All @@ -17,8 +15,6 @@ public static void runGame(String gameDescription, String[][] gameData, boolean
if (greeter) {
return;
}


System.out.println(gameDescription);
for (var i = 0; i < MAX_ROUNDS; i++) {
System.out.println("Question: " + gameData[i][0]);
Expand All @@ -37,14 +33,4 @@ public static void runGame(String gameDescription, String[][] gameData, boolean
System.out.println("Congratulations, " + player + "!");
scan.close();
}
// Getting greet and player name
//public static String greeter() {
// Scanner scan = new Scanner(System.in);
// String userName;
// System.out.println("Welcome to the Brain Games!");
// System.out.print("May I have your name? ");
// userName = scan.nextLine();
// System.out.println("Hello, " + userName + "!");
// return userName;
//}
}

0 comments on commit 62c59f9

Please sign in to comment.