We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df01847 commit 434c528Copy full SHA for 434c528
brain_games/games/progression.py
@@ -16,7 +16,7 @@ def get_question_msg() -> str:
16
position = random.randint(0, length - 1)
17
start_num = random.randint(0, 10)
18
step = random.randint(1, 10)
19
- stop_num = start_num + step * (length - 1)
+ stop_num = start_num + step * length
20
progression_lst = [str(num) for num in range(start_num, stop_num, step)]
21
global hidden_number
22
hidden_number = progression_lst[position]
0 commit comments