You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Print(" ¿ Quiere jugar a pensar(P) o adivinar(a) el número ? : ") // la P mayuscula indica que es la opcion predeterminada en caso de no ingresar ni "p" ni "a"
var juego string
fmt.Scan(&juego)
if juego == "a" { // si se ingresa "a", el humano adivinará
humanoAdivina()
} else { // si se ingresa cualquier otro caracter, la maquina adivinará