Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 12, 2020 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/31dfc678eae70aabf1d88e4c02d6ef01 to your computer and use it in GitHub Desktop.
Save parzibyte/31dfc678eae70aabf1d88e4c02d6ef01 to your computer and use it in GitHub Desktop.
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