Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 26a18f1

Browse filesBrowse files
committed
max attempt has been reduced
1 parent 0506c35 commit 26a18f1
Copy full SHA for 26a18f1

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎projects/guess-the-number/core/game_logic.py

Copy file name to clipboardExpand all lines: projects/guess-the-number/core/game_logic.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def check_guess(number, guess):
1111
else:
1212
return "Correct!"
1313

14-
def play_game(max_attempts=10, min_val=1, max_val=100):
14+
def play_game(max_attempts=4, min_val=1, max_val=100):
1515
number = generate_number(min_val, max_val)
1616
attempts = 0
1717

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.