Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

2 changed files with 0 additions and 29 deletions

View File

@ -1,20 +0,0 @@
from PyDictionary import PyDictionary
dictionary = PyDictionary()
filler = ["'", '{', '}', '[', ']']
d = {
'test': 'nice'
}
def means(word):
if type(d) is type(dictionary.meaning(word)):
meaning = str(dictionary.meaning(word))
for x in filler:
meaning = meaning.replace(x, '')
msg = word + ' meaning:\n' + meaning
return msg
else:
return 'made up word it doesnt exist i guess'

View File

@ -14,20 +14,16 @@ def getw():
return palabra
def word(palabra):
used_char = []
hp = 5
while hp != 0:
print('Enter a 5-letter word: ')
guess = input()
print('\n')
guess = guess.lower()
if len(guess) != 5:
print('That word has ' + str(len(guess)) + ' letters instead of 5!\n')
continue
else:
for x in guess:
if x not in used_char:
used_char.append(x)
if x not in palabra:
guess = guess.replace(x, '_')
i = 0
@ -40,11 +36,6 @@ def word(palabra):
i += 1
print(guess)
hp -= 1
msg = '\nUsed characters: ' + str(used_char) + '\n'
msg = msg.replace('[', '')
msg = msg.replace(']', '')
msg = msg.replace("'", '')
print(msg)
if hp == 0:
print('u lost! the word was ' + palabra + ' :(')
hint = '_ _ _ _ _'