forked from siengrain/wordleTest
Merge pull request 'Arreglo de letras repetidas y shebang' (#1) from dendy/wordleTest:master into master
Reviewed-on: https://git.fai.su/siengrain/wordleTest/pulls/1
This commit is contained in:
commit
ea560a4852
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/env python
|
||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
def getw():
|
def getw():
|
||||||
|
@ -30,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