Skip to content

Commit 2b60e89

Browse files
committed
added asciinems for all games
1 parent 9c22212 commit 2b60e89

File tree

14 files changed

+426
-26
lines changed

14 files changed

+426
-26
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
1+
## Code Quality Badges
2+
13
[![Maintainability](https://api.codeclimate.com/v1/badges/194629cd817f2f1eb564/maintainability)](https://codeclimate.com/github/DashProsh/java-project-61/maintainability)
4+
![Test Coverage](https://api.codeclimate.com/v1/badges/653c5e564e36bab5b34b54802653d72f19f8df7a62cb77dae1bf11c46fe3610f/test_coverage)
25

6+
## Build Status
37

4-
### Hexlet tests and linter status:
58
[![Actions Status](https://github.com/DashProsh/java-project-61/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/DashProsh/java-project-61/actions)
69

10+
Game №2 Even
11+
12+
[![asciicast](https://asciinema.org/a/hK7HviHFAaJmAvHjga0E44ZT3)](https://asciinema.org/a/hK7HviHFAaJmAvHjga0E44ZT3)
13+
14+
Game №3 Сalculator
15+
16+
[![asciicast](https://asciinema.org/a/sfGAsetHDxwY6ZZAokfmChZiN)](https://asciinema.org/a/sfGAsetHDxwY6ZZAokfmChZiN)
17+
18+
Game №4 Gcd
19+
20+
[![asciicast](https://asciinema.org/a/AzDtyGmZIQdAyPeMScHDvbqOP)](https://asciinema.org/a/AzDtyGmZIQdAyPeMScHDvbqOP)
21+
22+
Game №5 Progression
23+
24+
[![asciicast](https://asciinema.org/a/Nbpm687D7OyU10QvPj5BOXlUI)](https://asciinema.org/a/Nbpm687D7OyU10QvPj5BOXlUI)
25+
26+
Game №6 Prime
27+
28+
[![asciicast](https://asciinema.org/a/Z79YTaMJKpz2YCw2keBHftJWz)](https://asciinema.org/a/Z79YTaMJKpz2YCw2keBHftJWz)

app/Calc.cast

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{"version": 2, "width": 155, "height": 22, "timestamp": 1731430745, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}}
2+
[0.045423, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
3+
[0.050815, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[Jdaria@Air-Daria app main $ \u001b[K\u001b[?2004h"]
4+
[1.096369, "o", "\u001b[7m make run-dist\u001b[27m"]
5+
[1.503179, "o", "\u001b[14D\u001b[27m \u001b[27mm\u001b[27ma\u001b[27mk\u001b[27me\u001b[27m \u001b[27mr\u001b[27mu\u001b[27mn\u001b[27m-\u001b[27md\u001b[27mi\u001b[27ms\u001b[27mt\u001b[?2004l\r\r\n"]
6+
[1.52302, "o", "./gradlew installDist\r\n"]
7+
[1.82835, "o", "\r\n\u001b[32;1mBUILD SUCCESSFUL\u001b[0;39m in 258ms\r\n4 actionable tasks: 4 up-to-date\r\n\r\n\u001b[1A\u001b[1m<\u001b[0;1m-------------> 0% WAITING\u001b[m\u001b[26D\u001b[1B"]
8+
[1.828644, "o", "\u001b[1A\u001b[2K"]
9+
[1.829396, "o", "\u001b[0m\u001b[?12l\u001b[?25h"]
10+
[2.221285, "o", "/bin/sh ./build/install/app/bin/app\r\n"]
11+
[2.284048, "o", "Please enter the game number and press Enter.\r\n1 - Greet\r\n2 - Even\r\n3 - Calc\r\n4 - GCD\r\n5 - Progression\r\n6 - Prime\r\n0 - Exit\r\nYour choice:\r\n"]
12+
[3.569689, "o", "3"]
13+
[3.762327, "o", "\r\n"]
14+
[3.774759, "o", "Welcome to the Brain Games!\r\nMay I have your name?\r\n"]
15+
[4.652119, "o", "D"]
16+
[5.362647, "o", "r"]
17+
[6.342191, "o", "\b \b"]
18+
[6.476384, "o", "a"]
19+
[6.794676, "o", "r"]
20+
[7.14527, "o", "i"]
21+
[7.247375, "o", "a"]
22+
[7.523176, "o", "\r\n"]
23+
[7.53192, "o", "Hello, Daria!\r\nWhat is the result of the expression?\r\n"]
24+
[7.532641, "o", "Question: 11-9\r\nYour answer: \r\n"]
25+
[9.428841, "o", "2"]
26+
[9.61232, "o", "\r\n"]
27+
[9.612662, "o", "Correct!\r\n"]
28+
[9.612895, "o", "Question: 16*2\r\nYour answer: \r\n"]
29+
[11.264497, "o", "3"]
30+
[11.470145, "o", "2"]
31+
[11.715258, "o", "\r\n"]
32+
[11.71582, "o", "Correct!\r\n"]
33+
[11.716056, "o", "Question: 4-5\r\nYour answer: \r\n"]
34+
[14.411418, "o", "-"]
35+
[14.69139, "o", "1"]
36+
[15.361209, "o", "\r\n"]
37+
[15.361824, "o", "Correct!\r\n"]
38+
[15.362559, "o", "Congratulations, Daria!\r\n"]
39+
[15.369302, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
40+
[15.384808, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[Jdaria@Air-Daria app main $ \u001b[K\u001b[?2004h"]
41+
[17.454385, "o", "\u001b[7m make run-dist\u001b[27m"]
42+
[17.798044, "o", "\u001b[14D\u001b[27m \u001b[27mm\u001b[27ma\u001b[27mk\u001b[27me\u001b[27m \u001b[27mr\u001b[27mu\u001b[27mn\u001b[27m-\u001b[27md\u001b[27mi\u001b[27ms\u001b[27mt\u001b[?2004l\r\r\n"]
43+
[17.819813, "o", "./gradlew installDist\r\n"]
44+
[18.145987, "o", "\r\n\r\n\u001b[2A\u001b[1m<\u001b[0;1m-------------> 0% CONFIGURING [20ms]\u001b[m\u001b[37D\u001b[1B\u001b[1m> root project\u001b[m\u001b[14D\u001b[1B"]
45+
[18.162093, "o", "\u001b[2A\u001b[0K\r\n\u001b[32;1mBUILD SUCCESSFUL\u001b[0;39m in 286ms\r\n4 actionable tasks: 4 up-to-date\r\n\u001b[0K\r\n\u001b[0K\r\n\u001b[2A\u001b[1m<\u001b[0;1m-------------> 0% WAITING\u001b[m\u001b[26D\u001b[1B\u001b[1m> root project\u001b[m\u001b[14D\u001b[1B"]
46+
[18.162224, "o", "\u001b[2A\u001b[2K\u001b[1B\u001b[2K\u001b[1A"]
47+
[18.163148, "o", "\u001b[0m\u001b[?12l\u001b[?25h"]
48+
[18.547483, "o", "/bin/sh ./build/install/app/bin/app\r\n"]
49+
[18.602109, "o", "Please enter the game number and press Enter.\r\n1 - Greet\r\n2 - Even\r\n3 - Calc\r\n4 - GCD\r\n5 - Progression\r\n6 - Prime\r\n0 - Exit\r\nYour choice:\r\n"]
50+
[19.544616, "o", "3"]
51+
[19.741419, "o", "\r\n"]
52+
[19.755856, "o", "Welcome to the Brain Games!\r\nMay I have your name?\r\n"]
53+
[20.890266, "o", "D"]
54+
[21.107997, "o", "a"]
55+
[22.448293, "o", "r"]
56+
[22.653282, "o", "i"]
57+
[22.778057, "o", "a"]
58+
[22.866051, "o", "a"]
59+
[23.031764, "o", "\r\n"]
60+
[23.039818, "o", "Hello, Dariaa!\r\nWhat is the result of the expression?\r\n"]
61+
[23.040876, "o", "Question: 3-2\r\nYour answer: \r\n"]
62+
[25.612983, "o", "1"]
63+
[25.782974, "o", "\r\n"]
64+
[25.783617, "o", "Correct!\r\n"]
65+
[25.784101, "o", "Question: 11-9\r\nYour answer: \r\n"]
66+
[27.561331, "o", "1"]
67+
[27.788554, "o", "2"]
68+
[28.067625, "o", "\r\n"]
69+
[28.079016, "o", "'12'is wrong answer ;(. Correct answer was '2'. \r\nLet's try again, Dariaa!\r\n"]
70+
[28.097774, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
71+
[28.113605, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[Jdaria@Air-Daria app main $ \u001b[K\u001b[?2004h"]
72+
[31.524423, "o", "\u001b[?2004l\r\r\n"]

app/Even.cast

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{"version": 2, "width": 155, "height": 26, "timestamp": 1731430152, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}}
2+
[0.057063, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
3+
[0.062637, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[Jdaria@Air-Daria app main $ \u001b[K\u001b[?2004h"]
4+
[0.911606, "o", "\u001b[7mmake run-dist\u001b[27m"]
5+
[1.389044, "o", "\u001b[13D\u001b[27mm\u001b[27ma\u001b[27mk\u001b[27me\u001b[27m \u001b[27mr\u001b[27mu\u001b[27mn\u001b[27m-\u001b[27md\u001b[27mi\u001b[27ms\u001b[27mt\u001b[?2004l"]
6+
[1.389094, "o", "\r\r\n"]
7+
[1.411234, "o", "./gradlew installDist\r\n"]
8+
[1.742735, "o", "\r\n\u001b[1A\u001b[1m<\u001b[0;1m-------------> 0% INITIALIZING [15ms]\u001b[m\u001b[38D\u001b[1B"]
9+
[1.784287, "o", "\u001b[1A\u001b[0K\r\n\u001b[32;1mBUILD SUCCESSFUL\u001b[0;39m in 311ms\r\n4 actionable tasks: 4 up-to-date\r\n\u001b[0K\r\n\u001b[1A\u001b[1m<\u001b[0;1m-------------> 0% WAITING\u001b[m\u001b[26D\u001b[1B"]
10+
[1.784424, "o", "\u001b[1A\u001b[2K"]
11+
[1.785402, "o", "\u001b[0m\u001b[?12l\u001b[?25h"]
12+
[2.174053, "o", "/bin/sh ./build/install/app/bin/app\r\n"]
13+
[2.228458, "o", "Please enter the game number and press Enter.\r\n1 - Greet\r\n2 - Even\r\n3 - Calc\r\n4 - GCD\r\n5 - Progression\r\n6 - Prime\r\n0 - Exit\r\nYour choice:\r\n"]
14+
[3.512658, "o", "2"]
15+
[3.743097, "o", "\r\n"]
16+
[3.74834, "o", "Welcome to the Brain Games!\r\nMay I have your name?\r\n"]
17+
[5.228121, "o", "D"]
18+
[5.393239, "o", "a"]
19+
[6.007221, "o", "r"]
20+
[6.358328, "o", "i"]
21+
[6.459795, "o", "a"]
22+
[7.145083, "o", "\r\n"]
23+
[7.155075, "o", "Hello, Daria!\r\nAnswer 'yes' if the number is even, otherwise answer 'no'.\r\n"]
24+
[7.155706, "o", "Question: 42\r\nYour answer: \r\n"]
25+
[10.545161, "o", "y"]
26+
[10.638392, "o", "e"]
27+
[10.841964, "o", "s"]
28+
[11.059608, "o", "\r\n"]
29+
[11.060234, "o", "Correct!\r\n"]
30+
[11.060614, "o", "Question: 35\r\nYour answer: \r\n"]
31+
[12.841186, "o", "n"]
32+
[13.071991, "o", "o"]
33+
[13.396392, "o", "\r\n"]
34+
[13.396879, "o", "Correct!\r\n"]
35+
[13.397287, "o", "Question: 91\r\nYour answer: \r\n"]
36+
[14.928157, "o", "n"]
37+
[15.081299, "o", "o"]
38+
[15.39429, "o", "\r\n"]
39+
[15.3948, "o", "Correct!\r\n"]
40+
[15.395474, "o", "Congratulations, Daria!\r\n"]
41+
[15.403919, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
42+
[15.423658, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[Jdaria@Air-Daria app main $ \u001b[K\u001b[?2004h"]
43+
[16.681191, "o", "\u001b[7mmake run-dist\u001b[27m"]
44+
[17.547336, "o", "\u001b[13D\u001b[27mm\u001b[27ma\u001b[27mk\u001b[27me\u001b[27m \u001b[27mr\u001b[27mu\u001b[27mn\u001b[27m-\u001b[27md\u001b[27mi\u001b[27ms\u001b[27mt\u001b[?2004l\r\r\n"]
45+
[17.562637, "o", "./gradlew installDist\r\n"]
46+
[17.86672, "o", "\r\n\u001b[32;1mBUILD SUCCESSFUL\u001b[0;39m in 254ms\r\n4 actionable tasks: 4 up-to-date\r\n\u001b[1m<\u001b[0;1m-------------> 0% WAITING\u001b[m\u001b[26D"]
47+
[17.86691, "o", "\u001b[2K"]
48+
[17.867612, "o", "\u001b[0m\u001b[?12l\u001b[?25h"]
49+
[18.248563, "o", "/bin/sh ./build/install/app/bin/app\r\n"]
50+
[18.312782, "o", "Please enter the game number and press Enter.\r\n1 - Greet\r\n2 - Even\r\n3 - Calc\r\n4 - GCD\r\n5 - Progression\r\n6 - Prime\r\n0 - Exit\r\nYour choice:\r\n"]
51+
[19.657476, "o", "2"]
52+
[19.825377, "o", "\r\n"]
53+
[19.828798, "o", "Welcome to the Brain Games!\r\nMay I have your name?\r\n"]
54+
[20.605952, "o", "D"]
55+
[20.807687, "o", "a"]
56+
[21.822034, "o", "r"]
57+
[21.978505, "o", "i"]
58+
[23.167212, "o", "a"]
59+
[23.532715, "o", "\r\n"]
60+
[23.540391, "o", "Hello, Daria!\r\n"]
61+
[23.540423, "o", "Answer 'yes' if the number is even, otherwise answer 'no'.\r\n"]
62+
[23.540988, "o", "Question: 76\r\n"]
63+
[23.541027, "o", "Your answer: \r\n"]
64+
[26.204939, "o", "y"]
65+
[26.312397, "o", "e"]
66+
[26.52256, "o", "s"]
67+
[26.699541, "o", "\r\n"]
68+
[26.700252, "o", "Correct!\r\n"]
69+
[26.700742, "o", "Question: 90\r\nYour answer: \r\n"]
70+
[29.348676, "o", "n"]
71+
[29.510692, "o", "o"]
72+
[29.816411, "o", "\r\n"]
73+
[29.828604, "o", "'no'is wrong answer ;(. Correct answer was 'yes'. \r\nLet's try again, Daria!\r\n"]
74+
[29.84745, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
75+
[29.860517, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[Jdaria@Air-Daria app main $ \u001b[K\u001b[?2004h"]
76+
[37.101663, "o", "\u001b[?2004l\r\r\n"]

app/Gcd.cast

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{"version": 2, "width": 155, "height": 24, "timestamp": 1731431074, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}}
2+
[0.057435, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
3+
[0.062332, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[Jdaria@Air-Daria app main $ \u001b[K\u001b[?2004h"]
4+
[1.301213, "o", "\u001b[7mmake run-dist\u001b[27m"]
5+
[1.730599, "o", "\u001b[13D\u001b[27mm\u001b[27ma\u001b[27mk\u001b[27me\u001b[27m \u001b[27mr\u001b[27mu\u001b[27mn\u001b[27m-\u001b[27md\u001b[27mi\u001b[27ms\u001b[27mt\u001b[?2004l\r\r\n"]
6+
[1.754603, "o", "./gradlew installDist\r\n"]
7+
[2.080015, "o", "\r\n\r\n\u001b[2A\u001b[1m<\u001b[0;1m-------------> 0% INITIALIZING [12ms]\u001b[m\u001b[38D\u001b[1B\u001b[1m> Evaluating settings\u001b[m\u001b[21D\u001b[1B"]
8+
[2.115767, "o", "\u001b[2A\u001b[0K\r\n\u001b[32;1mBUILD SUCCESSFUL\u001b[0;39m in 314ms\r\n4 actionable tasks: 4 up-to-date\r\n\u001b[0K\r\n\u001b[0K\r\n\u001b[2A\u001b[1m<\u001b[0;1m-------------> 0% WAITING\u001b[m\u001b[26D\u001b[1B\u001b[1m> Evaluating settings\u001b[m\u001b[21D\u001b[1B"]
9+
[2.115867, "o", "\u001b[2A\u001b[2K\u001b[1B\u001b[2K\u001b[1A"]
10+
[2.116704, "o", "\u001b[0m\u001b[?12l\u001b[?25h"]
11+
[2.508009, "o", "/bin/sh ./build/install/app/bin/app\r\n"]
12+
[2.562359, "o", "Please enter the game number and press Enter.\r\n1 - Greet\r\n2 - Even\r\n3 - Calc\r\n4 - GCD\r\n5 - Progression\r\n6 - Prime\r\n0 - Exit\r\nYour choice:\r\n"]
13+
[4.757714, "o", "4"]
14+
[4.944287, "o", "\r\n"]
15+
[4.960507, "o", "Welcome to the Brain Games!\r\nMay I have your name?\r\n"]
16+
[6.027208, "o", "D"]
17+
[6.699793, "o", "r"]
18+
[6.955469, "o", "i"]
19+
[7.062902, "o", "a"]
20+
[7.82788, "o", "\b \b"]
21+
[7.946917, "o", "\b \b"]
22+
[8.056909, "o", "\b \b"]
23+
[9.053288, "o", "a"]
24+
[9.466138, "o", "r"]
25+
[9.702971, "o", "i"]
26+
[9.796295, "o", "a"]
27+
[10.058498, "o", "\r\n"]
28+
[10.068967, "o", "Hello, Daria!\r\nFind the greatest common divisor of given numbers.\r\nQuestion: 25 20\r\nYour answer: \r\n"]
29+
[13.520719, "o", "5"]
30+
[13.779348, "o", "\r\n"]
31+
[13.780115, "o", "Correct!\r\n"]
32+
[13.780403, "o", "Question: 40 50\r\nYour answer: \r\n"]
33+
[15.482828, "o", "1"]
34+
[15.970296, "o", "0"]
35+
[16.334328, "o", "\r\n"]
36+
[16.334697, "o", "Correct!\r\n"]
37+
[16.33489, "o", "Question: 45 15\r\nYour answer: \r\n"]
38+
[19.163225, "o", "1"]
39+
[19.786176, "o", "5"]
40+
[20.042625, "o", "\r\n"]
41+
[20.043306, "o", "Correct!\r\n"]
42+
[20.043886, "o", "Congratulations, Daria!\r\n"]
43+
[20.050983, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
44+
[20.067827, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[Jdaria@Air-Daria app main $ \u001b[K\u001b[?2004h"]
45+
[21.422229, "o", "\u001b[7mmake run-dist\u001b[27m"]
46+
[21.747952, "o", "\u001b[13D\u001b[27mm\u001b[27ma\u001b[27mk\u001b[27me\u001b[27m \u001b[27mr\u001b[27mu\u001b[27mn\u001b[27m-\u001b[27md\u001b[27mi\u001b[27ms\u001b[27mt\u001b[?2004l\r\r\n"]
47+
[21.767136, "o", "./gradlew installDist\r\n"]
48+
[22.073888, "o", "\r\n"]
49+
[22.087927, "o", "\u001b[1A\r\n\u001b[32;1mBUILD SUCCESSFUL\u001b[0;39m in 273ms\r\n4 actionable tasks: 4 up-to-date\r\n\r\n\u001b[1A\u001b[1m<\u001b[0;1m-------------> 0% WAITING\u001b[m\u001b[26D\u001b[1B"]
50+
[22.088093, "o", "\u001b[1A\u001b[2K"]
51+
[22.088979, "o", "\u001b[0m\u001b[?12l\u001b[?25h"]
52+
[22.480041, "o", "/bin/sh ./build/install/app/bin/app\r\n"]
53+
[22.544778, "o", "Please enter the game number and press Enter.\r\n1 - Greet\r\n2 - Even\r\n3 - Calc\r\n4 - GCD\r\n5 - Progression\r\n6 - Prime\r\n0 - Exit\r\nYour choice:\r\n"]
54+
[26.692528, "o", "4"]
55+
[27.09275, "o", "\r\n"]
56+
[27.108872, "o", "Welcome to the Brain Games!\r\nMay I have your name?\r\n"]
57+
[30.354312, "o", "D"]
58+
[30.581866, "o", "a"]
59+
[31.527166, "o", "r"]
60+
[31.694399, "o", "i"]
61+
[31.814724, "o", "a"]
62+
[32.051484, "o", "\r\n"]
63+
[32.061734, "o", "Hello, Daria!\r\nFind the greatest common divisor of given numbers.\r\n"]
64+
[32.062197, "o", "Question: 10 10\r\nYour answer: \r\n"]
65+
[36.335359, "o", "1"]
66+
[36.418951, "o", "0"]
67+
[36.697191, "o", "\r\n"]
68+
[36.697763, "o", "Correct!\r\n"]
69+
[36.698111, "o", "Question: 81 45\r\nYour answer: \r\n"]
70+
[38.033701, "o", "3"]
71+
[38.269881, "o", "\r\n"]
72+
[38.281623, "o", "'3'is wrong answer ;(. Correct answer was '9'. \r\nLet's try again, Daria!\r\n"]
73+
[38.286717, "o", "\u001b[1m\u001b[7m%\u001b[27m\u001b[1m\u001b[0m \r \r"]
74+
[38.300289, "o", "\r\u001b[0m\u001b[27m\u001b[24m\u001b[Jdaria@Air-Daria app main $ \u001b[K\u001b[?2004h"]
75+
[40.672704, "o", "\u001b[?2004l\r\r\n"]

app/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
run-dist:
1+
build-dist:
2+
./gradlew installDist
3+
4+
run-dist: build-dist
5+
/bin/sh ./build/install/app/bin/app
6+
7+
run:
28
./build/install/app/bin/app

0 commit comments

Comments
 (0)