Skip to content

Commit 0075558

Browse files
committed
added description to README, edded necessary strings to build.gradle.kts
1 parent e9b7124 commit 0075558

File tree

2 files changed

+68
-11
lines changed

2 files changed

+68
-11
lines changed

README.md

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
new
21
Code Quality Badges
32

43
[![Maintainability](https://api.codeclimate.com/v1/badges/194629cd817f2f1eb564/maintainability)](https://codeclimate.com/github/DashProsh/java-project-61/maintainability)
@@ -9,6 +8,62 @@ Build Status
98
[![Actions Status](https://github.com/DashProsh/java-project-61/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/DashProsh/java-project-61/actions)
109

1110

11+
```bash
12+
В данном проекте реализовано 5 игр.
13+
Для начала игроку предлагается меню, где можно выбрать игру.
14+
После выбора игры предлагается написать свое имя и программа здоровается.
15+
Далее релизуется выбранная игра.
16+
Каждая игра имет 3 раунда, в том случае, если игрок отвечает верно. Если игрок отвечает хотя бы один раз неправильно, игра завершается.
17+
18+
* Игра №2 Четное/нечетное
19+
20+
Игроку предоставляется рандомное число. Игрок должен дать верный ответ: "да" или "нет", в зависимостри от того четное число или не четное.
21+
22+
* Игра №3 Калькулятор
23+
24+
Игроку предоставляется рандомное математическое выражение. Игрок должен посчитать результат выражения и написать ответ.
25+
26+
* Игра №4 НОД
27+
28+
Игроку предоставляется 2 рандомных числа. Игрок должен вычислить наибольший общий делитель для данных двух чисел и написать ответ.
29+
30+
* Игра №5 Прогрессия
31+
32+
Игроку предоставляется рандомная прогрессия чисел с одним пропущенным числом. Игрок должен написать в ответ пропущенное число в прогрессии.
33+
34+
* Игра №6 Простое ли число
35+
36+
Игроку предоставляется рандомное число. Игрок должен дать верный ответ: "да" или "нет", в зависимостри от того простое число или нет.```
37+
38+
39+
```bash
40+
In this project were implemented 5 games.
41+
To start, the player is presented with a menu where they can choose a game.
42+
After choosing the game, you are asked to write your name and the program is greeted.
43+
The selected game is then released.
44+
Each game has 3 rounds, if the player answers correctly. If the player answers wrong even once, the game ends.
45+
46+
* Game №2 Even
47+
48+
The player is given a random number. The player must give the correct answer: "yes" or "no", depending on that even number or not even.
49+
50+
* Game №3 Calculator
51+
52+
The player is given a random mathematical expression. The player must calculate the result of the expression and write the answer.
53+
54+
* Game №4 GCD
55+
56+
The player is given 2 random numbers. The player must calculate the largest common divisor for these two numbers and write the answer.
57+
58+
* Game №5 Progression
59+
60+
The player is given a randomized progression of numbers with one number missed. The player must write back the number missed in the progression.
61+
62+
* Game №6 Whether the number is simple
63+
64+
The player is given a random number. The player must give the correct answer: "yes" or "no", depending on whether the number is prime or not.```
65+
66+
1267
## Game №2 Even
1368
1469
[![asciicast](https://asciinema.org/a/hK7HviHFAaJmAvHjga0E44ZT3.svg)](https://asciinema.org/a/hK7HviHFAaJmAvHjga0E44ZT3.svg)

app/build.gradle.kts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
2+
import org.gradle.api.tasks.testing.logging.TestLogEvent
3+
14
plugins {
2-
application
3-
java
4-
checkstyle
5+
id("application")
6+
id("checkstyle")
57
id("org.jetbrains.kotlin.jvm") version "1.8.10"
68
id("jacoco")
79
}
@@ -20,24 +22,24 @@ application {
2022
dependencies {
2123
testImplementation(platform("org.junit:junit-bom:5.10.3"))
2224
testImplementation("org.junit.jupiter:junit-jupiter")
25+
implementation("org.apache.commons:commons-lang3:3.13.0")
2326
}
2427

2528
tasks.test {
2629
useJUnitPlatform()
27-
finalizedBy("jacocoTestReport")
30+
testLogging {
31+
exceptionFormat = TestExceptionFormat.FULL
32+
events = mutableSetOf(TestLogEvent.FAILED, TestLogEvent.PASSED, TestLogEvent.SKIPPED)
33+
showStandardStreams = true
34+
}
2835
}
2936

30-
tasks.named<JacocoReport>("jacocoTestReport") {
31-
dependsOn(tasks.test)
37+
tasks.jacocoTestReport {
3238
reports {
3339
xml.required.set(true)
34-
html.required.set(true)
3540
}
3641
}
3742

38-
jacoco {
39-
toolVersion = "0.8.7"
40-
}
4143

4244
tasks.getByName<JavaExec>("run") {
4345
standardInput = System.`in`

0 commit comments

Comments
 (0)