Skip to content

Commit

Permalink
удаление комментариев и лишних строк
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeloie committed Jul 29, 2023
1 parent cb1a2ed commit 624f042
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 22 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/hexlet/code/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import java.util.Scanner;


public class App {


public static void main(String[] args) {

System.out.println("Welcome to the Brain Games!");
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/java/hexlet/code/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,3 @@ public static void playGame(Game choosenGame) {
System.out.printf("Congratulations, %s!%n", userName);
}
}






1 change: 0 additions & 1 deletion app/src/main/java/hexlet/code/Menu.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,4 @@ public static Game chooseGame(int userEnteredNumber) {
};
return returnedGame;
}

}
2 changes: 0 additions & 2 deletions app/src/main/java/hexlet/code/games/Calc.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

public class Calc implements Game {


/**
* @return возвращает правила игры
*/
Expand All @@ -15,7 +14,6 @@ public String getRules() {
return "What is the result of the expression?";
}


/**
* @return возвращает массив строк с вопросом и ответом
*/
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/java/hexlet/code/games/Even.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public boolean isEven(int x) {
return x % 2 == 0;
}


/**
* @return возвращает массив строк с вопросом и ответом
*/
Expand All @@ -34,7 +33,4 @@ public String[] getQuestionAndAnswer() {
qaa[1] = isEven(x) ? "yes" : "no";
return qaa;
}


}

2 changes: 0 additions & 2 deletions app/src/main/java/hexlet/code/games/GCD.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ private int computeGCD(int x, int y) {
return n;
}


/**
* @return возвращает правила игры
*/
Expand All @@ -33,7 +32,6 @@ public String[] getQuestionAndAnswer() {
String[] qaa = new String[2];
int a = Utils.getRandomNumber(1, Engine.SUPREMUM);
int b = Utils.getRandomNumber(1, Engine.SUPREMUM);
// System.out.printf("Question: %d %d%nYour answer: ", a, b);
qaa[0] = "Question: " + a + " " + b + "\n" + "Your answer: ";
qaa[1] = String.valueOf(computeGCD(a, b));
return qaa;
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/hexlet/code/games/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ public interface Game {

String getRules();


/**
* @return возвращает массив строк с вопросом и ответом
*/
String[] getQuestionAndAnswer();

}
2 changes: 0 additions & 2 deletions app/src/main/java/hexlet/code/games/Prime.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ private static boolean isPrime(int x) {
return true;
}


/**
* @return возвращает правила игры
*/
Expand All @@ -26,7 +25,6 @@ public String getRules() {
return "Answer 'yes' if given number is prime. Otherwise answer 'no'.";
}


/**
* @return возвращает массив строк с вопросом и ответом
*/
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/hexlet/code/games/Progression.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class Progression implements Game {
public static final int BEGIN_MIN = 10;
public static final int BEGIN_MAX = 30;


/**
* @return возвращает правила игры
*/
Expand Down

0 comments on commit 624f042

Please sign in to comment.