Compare commits

..

No commits in common. "06d93758a4630c3115553b0aa07a85b27e5d7761" and "7fc74c8e1f15aab7434d1a6f10a8d40bfa9a4476" have entirely different histories.

1 changed files with 1 additions and 4 deletions

5
wordle.py Executable file → Normal file
View File

@ -1,5 +1,3 @@
#!/bin/env python
import random import random
def getw(): def getw():
@ -9,7 +7,6 @@ def getw():
lines = f.readlines() lines = f.readlines()
palabra = lines[number][0:5] palabra = lines[number][0:5]
palabra = "flocs"
f.close() f.close()
return palabra return palabra
@ -33,7 +30,7 @@ def word(palabra):
break break
while i != 5: while i != 5:
if guess[i] == palabra[i]: if guess[i] == palabra[i]:
guess = guess[:i] + guess[i].upper() + guess[i+1:] guess = guess.replace(guess[i], guess[i].upper())
i += 1 i += 1
print(guess) print(guess)
hp -= 1 hp -= 1