Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-lowercase words handling in Hangman #10098

Open
wants to merge 3 commits into
base: content
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Monika After Story/game/zz_hangman.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ label mas_hangman_game_loop:
else:
$ guesses += 1
python:
if guess in word:
if guess in word.lower():
for index in range(0,len(word)):
if guess == word[index]:
display_word[index] = guess
if guess == word[index].lower():
display_word[index] = word[index]
else:
chances -= 1
missed += guess
Expand Down