Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 7, 2019 02:52
Show Gist options
  • Save parzibyte/e5938a1ed7f3e6eb3e7d08b26659623f to your computer and use it in GitHub Desktop.
Save parzibyte/e5938a1ed7f3e6eb3e7d08b26659623f to your computer and use it in GitHub Desktop.
// Aumenta un intento y verifica si el jugador ha perdido
aumentarIntento() {
this.intentos++;
if (this.intentos >= MAXIMOS_INTENTOS) {
this.indicarFracaso();
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment