Skip to content

Commit e8a1296

Browse files
committed
optimized all game
1 parent 04fa93f commit e8a1296

File tree

10 files changed

+9
-25
lines changed

10 files changed

+9
-25
lines changed
86 Bytes
Binary file not shown.

brain_games/scripts/games/brain_calc.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import brain_games.scripts.games.sample
22

33

4-
def calc_game():
5-
cond_answer = 'What is the result of the expression?'
6-
return brain_games.scripts.games.sample.samples('brain-calc', cond_answer)
7-
8-
94
def main():
10-
print(calc_game())
5+
cond_answer = 'What is the result of the expression?'
6+
print(brain_games.scripts.games.sample.samples('brain-calc', cond_answer))
117

128

139
if __name__ == '__main__':

brain_games/scripts/games/brain_even.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import brain_games.scripts.games.sample
22

33

4-
def game_parity_check():
5-
cond_answer = 'Answer "yes" if the number is even, otherwise answer "no".'
6-
return brain_games.scripts.games.sample.samples('brain-even', cond_answer)
7-
8-
94
def main():
10-
print(game_parity_check())
5+
cond_answer = 'Answer "yes" if the number is even, otherwise answer "no".'
6+
print(brain_games.scripts.games.sample.samples('brain-even', cond_answer))
117

128

139
if __name__ == '__main__':

brain_games/scripts/games/brain_gcd.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import brain_games.scripts.games.sample
22

33

4-
def game_gcd():
5-
cond_answer = 'Find the greatest common divisor of given numbers.'
6-
return brain_games.scripts.games.sample.samples('brain-gcd', cond_answer)
7-
8-
94
def main():
10-
print(game_gcd())
5+
cond_answer = 'Find the greatest common divisor of given numbers.'
6+
print(brain_games.scripts.games.sample.samples('brain-gcd', cond_answer))
117

128

139
if __name__ == '__main__':

brain_games/scripts/games/brain_progression.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import brain_games.scripts.games.sample
22

33

4-
def game_progression():
5-
cond_answer = 'What number is missing in the progression?'
6-
return brain_games.scripts.games.sample.samples('brain-progression', cond_answer)
7-
8-
94
def main():
10-
print(game_progression())
5+
cond_answer = 'What number is missing in the progression?'
6+
print(brain_games.scripts.games.sample.samples('brain-progression', cond_answer))
117

128

139
if __name__ == '__main__':
-5.01 KB
Binary file not shown.

dist/hexlet_code-0.5.1.tar.gz

-6.12 KB
Binary file not shown.
4.95 KB
Binary file not shown.

dist/hexlet_code-0.5.2.tar.gz

6.2 KB
Binary file not shown.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hexlet-code"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
description = ""
55
authors = ["ttehasi <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)