public class NumberWizard : MonoBehaviour
{
int max = 1000;
int min = 1;
int guess = 500;
// Start is called before the first frame update
void Start()
{
Debug.Log("Hi from Leganés(Spain). Welcome to the number wizard, tronco");
Debug.Log("Pick an number, please");
Debug.Log("The highest number you can pick is: " + max);
Debug.Log("The lower number you can pick is: " + min);
Debug.Log("Tell me if your number is higher o lower than: " + guess);
Debug.Log("Push Up = Higher, Push Down = Lower, Push Enter = Correct");
max = max + 1;
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.UpArrow))
{
Debug.Log("Okey, you number is higher than " + guess);
min = guess;
guess = (max + min) / 2;
Debug.Log(guess + "?");
}
else if (Input.GetKeyDown(KeyCode.DownArrow))
{
Debug.Log("Okey, you number is lower than " + guess);
max = guess;
guess = (max + min) / 2;
Debug.Log(guess + "?");
}
else if (Input.GetKeyDown(KeyCode.Return))
{
Debug.Log("All okey here, you are a beast");
}
}
}
@PacLega Whats up man? Why did you put “?” in with you Debug.Log ?
@UnicornKid Hi man!!
First, i’m apologize for my english.
I’m did put “?” because i’m trying to guess the number that the player has thought… So in console it show like for example, “750?”…
I’m trying to get it to look like if i was asking to the player if this number that’s the right one.
Do you know what i mean??
Really sorry for my english men, im trying my best 
Hey @PacLega ,
THANK YOU SO MUCH FOR RESPONDING!!! Your English is perfect and Your explanation made total sense! Really appreciate you response. Keep up the good work and GOOD LUCK!!!


Hola @PacLega,
¡¡¡MUCHAS GRACIAS POR RESPONDER!!! ¡Tu inglés es perfecto y tu explicación tiene mucho sentido! Realmente aprecio su respuesta. ¡Sigan con el buen trabajo y BUENA SUERTE !: 

@UnicornKid Thank you so much for your wishes!!
Good luck!! 
