From f7d4c45b2f401a7c151da0e7f18cd26a58dfc88a Mon Sep 17 00:00:00 2001 From: Maria Antipova Date: Thu, 5 Dec 2024 19:55:29 +0300 Subject: [PATCH] part5 --- README.md | 4 +- brain-games-demo.cast | 57 +++++++ .../__pycache__/brain_even.cpython-312.pyc | Bin 0 -> 1715 bytes brain_games/scripts/brain_even.py | 42 +++++ demo.cast | 147 ++++++++++++++++++ pyproject.toml | 1 + 6 files changed, 250 insertions(+), 1 deletion(-) create mode 100644 brain-games-demo.cast create mode 100644 brain_games/scripts/__pycache__/brain_even.cpython-312.pyc create mode 100644 brain_games/scripts/brain_even.py create mode 100644 demo.cast diff --git a/README.md b/README.md index 1dd7fce..823ded0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ ### Hexlet tests and linter status: [![Actions Status](https://github.com/maria-antipova/python-project-49/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/maria-antipova/python-project-49/actions) -[![Maintainability](https://api.codeclimate.com/v1/badges/baaa699f3976e5313f87/maintainability)](https://codeclimate.com/github/maria-antipova/python-project-49/maintainability) +[![Maintainability](https://api.codeclimate.com/v1/badges/baaa699f3976e5313f87/maintainability)](https://codeclimate.com/github/maria-antipova/python-project-49/maintainability) + +[![asciinema](https://asciinema.org/connect/47f9022f-c82c-4433-b161-f4e8046b3b1a)](https://asciinema.org/connect/47f9022f-c82c-4433-b161-f4e8046b3b1a) diff --git a/brain-games-demo.cast b/brain-games-demo.cast new file mode 100644 index 0000000..978ae10 --- /dev/null +++ b/brain-games-demo.cast @@ -0,0 +1,57 @@ +{"version": 2, "width": 120, "height": 30, "timestamp": 1733336468, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}} +[0.033518, "o", "\u001b[?2004h\u001b]0;beril@HOME-PC: ~/python-project-49\u0007\u001b[01;32mberil@HOME-PC\u001b[00m:\u001b[01;34m~/python-project-49\u001b[00m$ "] +[58.129424, "o", "pipx install --force dis"] +[58.130251, "o", "t/*.whl"] +[59.07716, "o", "\r\n\u001b[?2004l\r"] +[59.306227, "o", "\u001b[?25l"] +[59.314945, "o", "\r\u001b[K"] +[59.315282, "o", "\r\u001b[K"] +[59.315467, "o", "⣷ creating virtual environment"] +[59.360492, "o", "\r\u001b[K\r\u001b[K"] +[59.405639, "o", "\r\u001b[K\r\u001b[K⣷ determining package name from '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[59.505843, "o", "\r\u001b[K\r\u001b[K⣯ determining package name from '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[59.605955, "o", "\r\u001b[K\r\u001b[K⣟ determining package name from '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[59.706139, "o", "\r\u001b[K\r\u001b[K⡿ determining package name from '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[59.806304, "o", "\r\u001b[K\r\u001b[K⢿ determining package name from '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[59.906484, "o", "\r\u001b[K\r\u001b[K⣻ determining package name from '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[60.006593, "o", "\r\u001b[K\r\u001b[K⣽ determining package name from '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[60.106793, "o", "\r\u001b[K\r\u001b[K⣾ determining package name from '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[60.129028, "o", "\r\u001b[K"] +[60.129233, "o", "\r\u001b[K"] +[60.33182, "o", "Installing to existing venv 'hexlet-code'\r\n"] +[60.332077, "o", "\r\u001b[K"] +[60.332288, "o", "\r\u001b[K"] +[60.332439, "o", "⣷ creating virtual environment"] +[60.367863, "o", "\r\u001b[K\r\u001b[K"] +[60.401488, "o", "\r\u001b[K\r\u001b[K⣷ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[60.501682, "o", "\r\u001b[K\r\u001b[K⣯ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[60.60183, "o", "\r\u001b[K\r\u001b[K⣟ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[60.70198, "o", "\r\u001b[K\r\u001b[K⡿ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[60.802119, "o", "\r\u001b[K\r\u001b[K⢿ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[60.902434, "o", "\r\u001b[K\r\u001b[K⣻ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[61.002471, "o", "\r\u001b[K\r\u001b[K⣽ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[61.10259, "o", "\r\u001b[K\r\u001b[K⣾ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[61.202741, "o", "\r\u001b[K\r\u001b[K⣷ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[61.30291, "o", "\r\u001b[K\r\u001b[K⣯ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[61.402946, "o", "\r\u001b[K\r\u001b[K⣟ installing hexlet-code from spec '/home/beril/python-project-49/dist/hexlet_code-0.1.0-py3-none-any.whl'"] +[61.455755, "o", "\r\u001b[K\r\u001b[K"] +[61.488196, "o", "⚠️ Note: brain-even was already on your PATH at /home/beril/python-project-49/.venv/bin/brain-even\r\n"] +[61.488624, "o", "⚠️ Note: brain-games was already on your PATH at /home/beril/python-project-49/.venv/bin/brain-games\r\n"] +[61.517033, "o", " installed package \u001b[1mhexlet-code\u001b[0m \u001b[1m0.1.0\u001b[0m, installed using Python 3.12.3\r\n These apps are now globally available\r\n - brain-even\r\n - brain-games\r\n"] +[61.517307, "o", "done! ✨ 🌟 ✨\r\n\u001b[?25h"] +[61.517487, "o", "\u001b[0m"] +[61.536857, "o", "\u001b[?2004h\u001b]0;beril@HOME-PC: ~/python-project-49\u0007\u001b[01;32mberil@HOME-PC\u001b[00m:\u001b[01;34m~/python-project-49\u001b[00m$ "] +[76.709787, "o", "b"] +[77.046642, "o", "r"] +[77.457056, "o", "a"] +[77.713718, "o", "i"] +[77.979906, "o", "n"] +[78.45148, "o", "-"] +[78.917115, "o", "e"] +[79.159159, "o", "v"] +[79.253458, "o", "e"] +[79.555546, "o", "n"] +[80.26289, "o", "\r\n\u001b[?2004l\r"] +[80.428485, "o", "Traceback (most recent call last):\r\n File \"/home/beril/python-project-49/.venv/bin/brain-even\", line 3, in \r\n"] +[80.428753, "o", " from brain_games.scripts.brain_even import main\r\nImportError: cannot import name 'main' from 'brain_games.scripts.brain_even' (/home/beril/python-project-49/brain_games/scripts/brain_even.py)\r\n"] +[80.444661, "o", "\u001b[?2004h\u001b]0;beril@HOME-PC: ~/python-project-49\u0007\u001b[01;32mberil@HOME-PC\u001b[00m:\u001b[01;34m~/python-project-49\u001b[00m$ "] diff --git a/brain_games/scripts/__pycache__/brain_even.cpython-312.pyc b/brain_games/scripts/__pycache__/brain_even.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6bdaff374eea5a6a0f1041f184a6ec125c7192c1 GIT binary patch literal 1715 zcmaJ>-%le|6u!4J{lRnwcB;Yx!d@D8OA*>^+?a?)f=d?Nu%OYbk*r(0oe>JtnR;gm z>7*om&;$}6>Jv3e(gz>b@Zz6g;)AoaMjUH=&==ka_{5XvPD?4f#*@sMJKvl+=brDL zZ+?;_0fB9N`|ir0972Dwhja6_7pHTu*hLCbu!fe|-KXK4Z`p^D!hMdGIfVz$D}L~P zHJ}96#}T3-A5#7M?GzXlaS_LZN9=hqj@>|>8o9ic!R-KcWA$JU=rjUu7nPu%9Y9cx z<$E8+xy2(ELYey>u_SsS_eiBCOG3_OlB-5eO#+bBlKG;wYUoo?WlhakQ@37AKBDQY zo?1!gR5NL2Xf|(|ZA{%z^+dkt2D4_0t!WSB^TTCc0ar$cVYxE9GhLN;W*mO#6fksY z-#h@`zCVD)F0wj3DY%5bL3_UaHiD7G;yhD2=o%~al%4aog-h7$+!o#|sHT-Q^l4&C z9~lKo(z>~+(rFUsTz{Tsb&Im(u3s|%j{9hkJq21(CgY3{8e*8RqFSjIPWu30?V53L zWz^(*w(nLpDyxogt-+I~^ju}BF1_@tH1R~5s7sUOJ3vPH9%Vz5fvaPzn8$$zyHXd2Dhd)%c49q^U3}UUS*ER14mpQ5(%t;atP!USDWn_=0B zOw_|Km*<$E<|}iRSF5rk3^(`}0dRyn4SxPOfCjFXmkx!&>g<6q(v$~wN52}a;o2*8 zIkp{WM&plfe3$(Cg&(Z#-ey0k_1F8yx5Mz2I8aR-gvXnrT$yNyBZuN}^|L1;*;)D< zklD(5g;eqqup%Y0p#7`jBdH#A$soj5k(}_$q#KfT(IUYpeq3Ud182M)u z`2|NDsVdd`wVRG`{TKd*Cvi8FN-@?_sd$iHg(ltJ)_*%?8HTo=ZT)gCSoRp9*C3EG zA$mDH(#}F}tsc+ITc)=#cOn^J)Fvh=0.4.1 in ./.venv/lib/python3.12/site-packages (from hexlet-code==0.1.0) (0.4.1)\r\n"] +[19.766038, "o", "Requirement already satisfied: prompt-toolkit<4.0.0,>=3.0.48 in ./.venv/lib/python3.12/site-packages (from hexlet-code==0.1.0) (3.0.48)\r\n"] +[19.768593, "o", "Requirement already satisfied: wcwidth in ./.venv/lib/python3.12/site-packages (from prompt-toolkit<4.0.0,>=3.0.48->hexlet-code==0.1.0) (0.2.13)\r\n"] +[19.771586, "o", "hexlet-code is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.\r\n"] +[19.839019, "o", "\u001b[?2004h\u001b]0;beril@HOME-PC: ~/python-project-49\u0007\u001b[01;32mberil@HOME-PC\u001b[00m:\u001b[01;34m~/python-project-49\u001b[00m$ "] +[21.741871, "o", "b"] +[21.912597, "o", "r"] +[22.968409, "o", "a"] +[23.093178, "o", "i"] +[23.416502, "o", "n"] +[23.995051, "o", "-"] +[24.47262, "o", "e"] +[24.810238, "o", "v"] +[24.930862, "o", "e"] +[25.466683, "o", "n"] +[26.236062, "o", "\r\n\u001b[?2004l\r"] +[26.321803, "o", "Welcome to the Brain Games!\r\n"] +[26.33159, "o", "\u001b[6n"] +[26.334081, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mMay I have your name?\u001b[21D\u001b[22C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[26.338376, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[27.618216, "o", "\u001b[?25l\u001b[?7l\u001b[0mM\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[27.903514, "o", "\u001b[?25l\u001b[?7l\u001b[0ma\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[28.140488, "o", "\u001b[?25l\u001b[?7l\u001b[0mr\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[28.790382, "o", "\u001b[?25l\u001b[?7l\u001b[0mi\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[28.854278, "o", "\u001b[?25l\u001b[?7l\u001b[0ma\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[30.006833, "o", "\u001b[?25l\u001b[?7l\u001b[27D\u001b[0m\u001b[J\u001b[0mMay I have your name? Maria\u001b[27D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h\u001b[?2004l"] +[30.007587, "o", "Hello, Maria!\r\nAnswer \"yes\" if the number is even, otherwise answer \"no\".\r\nQuestion: 1\r\n"] +[30.013812, "o", "\u001b[6n"] +[30.016108, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mYour answer:\u001b[12D\u001b[13C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[30.020728, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[32.85415, "o", "\u001b[?25l\u001b[?7l\u001b[0mn\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[32.993685, "o", "\u001b[?25l\u001b[?7l\u001b[0mo\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[33.51234, "o", "\u001b[?25l\u001b[?7l\u001b[15D\u001b[0m\u001b[J\u001b[0mYour answer: no\u001b[15D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h\u001b[?2004l"] +[33.513164, "o", "Correct!\r\nQuestion: 87\r\n"] +[33.518622, "o", "\u001b[6n"] +[33.520723, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mYour answer:\u001b[12D\u001b[13C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[33.525914, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[35.530677, "o", "\u001b[?25l\u001b[?7l\u001b[0my\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[35.590623, "o", "\u001b[?25l\u001b[?7l\u001b[0me\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[35.857699, "o", "\u001b[?25l\u001b[?7l\u001b[0ms\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[36.129933, "o", "\u001b[?25l\u001b[?7l\u001b[16D\u001b[0m\u001b[J\u001b[0mYour answer: yes\u001b[16D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h\u001b[?2004l"] +[36.13062, "o", "'yes' is wrong answer ;(. Correct answer was 'no'.\r\nLet's try again, Maria!\r\n"] +[36.158617, "o", "\u001b[?2004h\u001b]0;beril@HOME-PC: ~/python-project-49\u0007\u001b[01;32mberil@HOME-PC\u001b[00m:\u001b[01;34m~/python-project-49\u001b[00m$ "] +[38.586544, "o", "b"] +[38.904528, "o", "r"] +[39.021073, "o", "a"] +[40.37296, "o", "\u0007in-"] +[41.455671, "o", "e"] +[42.03331, "o", "ven "] +[42.663007, "o", "\r\n\u001b[?2004l\r"] +[42.751271, "o", "Welcome to the Brain Games!\r\n"] +[42.760933, "o", "\u001b[6n"] +[42.763362, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mMay I have your name?\u001b[21D\u001b[22C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[42.767949, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[44.169097, "o", "\u001b[?25l\u001b[?7l\u001b[0mM\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[44.403057, "o", "\u001b[?25l\u001b[?7l\u001b[0ma\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[44.565636, "o", "\u001b[?25l\u001b[?7l\u001b[0mr\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[45.107288, "o", "\u001b[?25l\u001b[?7l\u001b[0mi\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[45.17848, "o", "\u001b[?25l\u001b[?7l\u001b[0ma\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[45.531814, "o", "\u001b[?25l\u001b[?7l\u001b[27D\u001b[0m\u001b[J\u001b[0mMay I have your name? Maria\u001b[27D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h\u001b[?2004l"] +[45.532585, "o", "Hello, Maria!\r\nAnswer \"yes\" if the number is even, otherwise answer \"no\".\r\nQuestion: 32\r\n"] +[45.53869, "o", "\u001b[6n"] +[45.540852, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mYour answer:\u001b[12D\u001b[13C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[45.545246, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[47.259711, "o", "\u001b[?25l\u001b[?7l\u001b[0my\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[47.578866, "o", "\u001b[?25l\u001b[?7l\u001b[0me\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[47.670507, "o", "\u001b[?25l\u001b[?7l\u001b[0ms\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[48.186289, "o", "\u001b[?25l\u001b[?7l\u001b[16D\u001b[0m\u001b[J\u001b[0mYour answer: yes\u001b[16D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h\u001b[?2004l"] +[48.187014, "o", "Correct!\r\nQuestion: 98\r\n"] +[48.192393, "o", "\u001b[6n"] +[48.195162, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mYour answer:\u001b[12D\u001b[13C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[48.199624, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[49.595314, "o", "\u001b[?25l\u001b[?7l\u001b[0my\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[49.924849, "o", "\u001b[?25l\u001b[?7l\u001b[0me\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[49.998988, "o", "\u001b[?25l\u001b[?7l\u001b[0ms\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[51.640241, "o", "\u001b[?25l\u001b[?7l\u001b[16D\u001b[0m\u001b[J\u001b[0mYour answer: yes\u001b[16D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h\u001b[?2004l"] +[51.640882, "o", "Correct!\r\nQuestion: 16\r\n"] +[51.646305, "o", "\u001b[6n"] +[51.648429, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mYour answer:\u001b[12D\u001b[13C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[51.653434, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[52.441018, "o", "\u001b[?25l\u001b[?7l\u001b[0mf\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[52.879823, "o", "\u001b[?25l\u001b[?7l\u001b[14D\u001b[0m\u001b[J\u001b[0mYour answer: f\u001b[14D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h\u001b[?2004l"] +[52.880546, "o", "'f' is wrong answer ;(. Correct answer was 'yes'.\r\nLet's try again, Maria!\r\n"] +[52.905687, "o", "\u001b[?2004h\u001b]0;beril@HOME-PC: ~/python-project-49\u0007\u001b[01;32mberil@HOME-PC\u001b[00m:\u001b[01;34m~/python-project-49\u001b[00m$ "] +[54.670942, "o", "b"] +[55.058676, "o", "\u0007"] +[55.506281, "o", "e"] +[56.299672, "o", "\b\u001b[K"] +[56.619412, "o", "r"] +[57.097979, "o", "\u0007"] +[58.261291, "o", "a"] +[59.459199, "o", "i"] +[59.768273, "o", "n"] +[60.346408, "o", "-"] +[61.496839, "o", "e"] +[61.960956, "o", "v"] +[62.039304, "o", "e"] +[62.429199, "o", "n"] +[62.763307, "o", "\r\n\u001b[?2004l\r"] +[62.850452, "o", "Welcome to the Brain Games!\r\n"] +[62.860245, "o", "\u001b[6n"] +[62.862749, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mMay I have your name?\u001b[21D\u001b[22C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[62.867127, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[63.905403, "o", "\u001b[?25l\u001b[?7l\u001b[0mM\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[64.175711, "o", "\u001b[?25l\u001b[?7l\u001b[0ma\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[64.350378, "o", "\u001b[?25l\u001b[?7l\u001b[0mr\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[64.929989, "o", "\u001b[?25l\u001b[?7l\u001b[0mi\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[65.046837, "o", "\u001b[?25l\u001b[?7l\u001b[0ma\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[65.588279, "o", "\u001b[?25l\u001b[?7l\u001b[27D\u001b[0m\u001b[J\u001b[0mMay I have your name? Maria\u001b[27D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h\u001b[?2004l"] +[65.589052, "o", "Hello, Maria!\r\nAnswer \"yes\" if the number is even, otherwise answer \"no\".\r\nQuestion: 91\r\n"] +[65.595116, "o", "\u001b[6n"] +[65.597229, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mYour answer:\u001b[12D\u001b[13C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[65.60162, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[67.159535, "o", "\u001b[?25l\u001b[?7l\u001b[0mn\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[67.246547, "o", "\u001b[?25l\u001b[?7l\u001b[0mo\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[67.670473, "o", "\u001b[?25l\u001b[?7l\u001b[15D\u001b[0m\u001b[J\u001b[0mYour answer: no\u001b[15D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h\u001b[?2004l"] +[67.671344, "o", "Correct!\r\nQuestion: 7\r\n"] +[67.677248, "o", "\u001b[6n"] +[67.679325, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mYour answer:\u001b[12D\u001b[13C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[67.685555, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[69.141702, "o", "\u001b[?25l\u001b[?7l\u001b[0mn\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[69.39547, "o", "\u001b[?25l\u001b[?7l\u001b[0mo\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[69.812169, "o", "\u001b[?25l\u001b[?7l\u001b[15D\u001b[0m\u001b[J\u001b[0mYour answer: no\u001b[15D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h\u001b[?2004l"] +[69.812841, "o", "Correct!\r\nQuestion: 22\r\n"] +[69.818205, "o", "\u001b[6n"] +[69.820302, "o", "\u001b[?2004h\u001b[?1l\u001b[?25l\u001b[0m\u001b[?7l\u001b[0m\u001b[J\u001b[0mYour answer:\u001b[12D\u001b[13C\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[69.824891, "o", "\u001b[?25l\u001b[?7l\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[71.302032, "o", "\u001b[?25l\u001b[?7l\u001b[0my\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[71.437787, "o", "\u001b[?25l\u001b[?7l\u001b[0me\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[71.8834, "o", "\u001b[?25l\u001b[?7l\u001b[0ms\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[72.555084, "o", "\u001b[?25l\u001b[?7l\u001b[16D\u001b[0m\u001b[J\u001b[0mYour answer: yes\u001b[16D\u001b[0m\r\r\n\u001b[J\u001b[?7h\u001b[0m\u001b[?12l\u001b[?25h"] +[72.555265, "o", "\u001b[?2004l"] +[72.556043, "o", "Correct!\r\nCongratulations, Maria!\r\n"] +[72.583426, "o", "\u001b[?2004h\u001b]0;beril@HOME-PC: ~/python-project-49\u0007\u001b[01;32mberil@HOME-PC\u001b[00m:\u001b[01;34m~/python-project-49\u001b[00m$ "] +[81.692029, "o", "e"] +[82.075134, "o", "x"] +[82.511889, "o", "i"] +[82.593043, "o", "t"] +[83.260112, "o", "\r\n\u001b[?2004l\r"] +[83.260155, "o", "exit\r\n"] diff --git a/pyproject.toml b/pyproject.toml index 99e6c6e..7458a4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,3 +22,4 @@ build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] brain-games = "brain_games.scripts.brain_games:main" +brain-even = "brain_games.scripts.brain_even:run_game"