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 77b6201

Browse filesBrowse files
authored
Merge pull request #18 from codeasarjun/numberguess
max attempt has been reduced
2 parents 76825d3 + 26a18f1 commit 77b6201
Copy full SHA for 77b6201

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.