forked from siengrain/wordleTest
Fix uppercasing of repeated characters
This commit is contained in:
parent
bd773150ab
commit
9bc1f91b0b
|
@ -32,7 +32,7 @@ def word(palabra):
|
||||||
break
|
break
|
||||||
while i != 5:
|
while i != 5:
|
||||||
if guess[i] == palabra[i]:
|
if guess[i] == palabra[i]:
|
||||||
guess = guess.replace(guess[i], guess[i].upper())
|
guess = guess[:i] + guess[i].upper() + guess[i+1:]
|
||||||
i += 1
|
i += 1
|
||||||
print(guess)
|
print(guess)
|
||||||
hp -= 1
|
hp -= 1
|
||||||
|
|
Loading…
Reference in New Issue