File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,10 @@ package-install:
1111 uv tool install dist/* .whl
1212
1313lint :
14- uv run ruff check brain_games
14+ uv run ruff check brain_games
15+
16+ brain-even :
17+ uv run brain-even
18+
19+ reinstall :
20+ uv tool install --force dist/* .whl
Original file line number Diff line number Diff line change 11from random import randrange
2+
3+ import prompt
4+
25from brain_games .cli import welcome_user
36from brain_games .scripts .brain_games import greet
4- import prompt
57
68
79def parity_check ():
@@ -18,7 +20,9 @@ def parity_check():
1820 print ('Correct!' )
1921 answer += 1
2022 else :
21- print (f"'{ user_answer } ' is wrong answer ;(. Correct answer was '{ correct } '.\n Let's try again, { name } !" )
23+ print (f"'{ user_answer } ' is wrong answer ;(."
24+ f"Correct answer was '{ correct } '" )
25+ print (f"Let's try again, { name } !" )
2226 break
2327 if answer == 3 :
2428 print (f'Congratulations, { name } ' )
@@ -28,5 +32,6 @@ def main():
2832 greet ()
2933 parity_check ()
3034
35+
3136if __name__ == '__main__' :
3237 main ()
Original file line number Diff line number Diff line change @@ -22,3 +22,4 @@ dev = [
2222
2323[project .scripts ]
2424brain-games = " brain_games.scripts.brain_games:main"
25+ brain-even = " brain_games.scripts.brain_even:main"
You can’t perform that action at this time.
0 commit comments