Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/jugar.py Secret

Created Sep 12, 2020
Embed
What would you like to do?
def jugar():
global letrasEscritas
global intentos
intentos = 6
letrasEscritas = []
palabra = obtenerPalabra()
prepararPalabra(palabra)
while True:
imprimirAhorcado()
dibujarIntentos()
imprimirPalabra()
descubrirLetra(input("Ingresa la letra: "))
if intentos <= 0:
print("Perdiste. La palabra era: ")
imprimirPalabraOriginal()
return
if haGanado():
print("Ganaste")
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment