forked from siengrain/wordleTest
Compare commits
2 Commits
7fc74c8e1f
...
06d93758a4
Author | SHA1 | Date |
---|---|---|
Dendy | 06d93758a4 | |
Dendy | bd773150ab |
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/env python
|
||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
def getw():
|
def getw():
|
||||||
|
@ -7,6 +9,7 @@ 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
|
||||||
|
@ -30,7 +33,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