Skip to content

Commit 8cf90d6

Browse files
committed
add module manual_games.py
1 parent 058bded commit 8cf90d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

brain_games/games/manual_games.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
def game_instruction(number_game):
3+
if number_game == 1:
4+
return 'Answer "yes" if the number is even, otherwise answer "no".'
5+
elif number_game == 2:
6+
return "What is the result of the expression?"
7+
elif number_game == 3:
8+
return 'Find the greatest common divisor of given numbers.'
9+
else:
10+
return "There is no such number. Let's try again!"

0 commit comments

Comments
 (0)