-
-
Save parzibyte/31dfc678eae70aabf1d88e4c02d6ef01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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