forked from shevdan/programming-group-209
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.py
More file actions
27 lines (25 loc) · 880 Bytes
/
script.py
File metadata and controls
27 lines (25 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import generate_grid
import number_type
from random import choice
if __name__ == '__main__':
print('blabla (Introduction)')
mode = input('What play mode do you want to try?')
# TODO: asks the user what level of difficilty (range_of_numbers)
# TODO: decide_mode()
# TODO: game_mode: limited number of errors, infinite mode
while True:
grid = generate_grid.generate_grid(level_of_difficulty, game_mode)
number_types = ['ulam', 'prime', 'happy']
print(grid)
type_of_num = choice(number_types)
print(f'Input {type_of_num}')
correct_nums = []
num_of_user = input('Enter your number')
if num_of_user:
if check_type(type_of_num, num_of_user)
correct_nums.append(num_of_user)
else:
break
# ? result -= 1
print(correct_nums)
results()