Skip to content

Commit 0579546

Browse files
committed
Update brain-even.py
1 parent 49215ad commit 0579546

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

brain_games/scripts/games/brain_even.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
from brain_games.engine import engine
44

55
GAME_TASK: str = 'Answer "yes" if the number is even, otherwise answer "no".'
6+
MIN_NUMBER = 1
7+
MAX_NUMBER = 10
68

79

810
def get_num():
9-
return randint(1, 10)
11+
return randint(MIN_NUMBER, MAX_NUMBER)
1012

1113

1214
def is_even(num):

0 commit comments

Comments
 (0)