Hello guys! Here is my code 
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NumberWizard : MonoBehaviour
{
int maxValue = 100;
int minValue = 1;
int guess;
// Start is called before the first frame update
void Start()
{
guess = (maxValue + minValue) / 2;
Debug.Log("Bienvenue! Hello from Québec, Canada.");
Debug.Log("Pick a number from " + minValue + " to " + maxValue + ".");
Debug.Log("Tell me if your number is higher or lower than " + guess);
Debug.Log("Push up = Higher, Push down = Lower, Push enter = Correct");
Debug.Log("My guess: " + guess + " Am I correct?");
maxValue = maxValue + 1;
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.UpArrow))
{
minValue = guess;
guess = (minValue + maxValue) / 2;
Debug.Log("New guess: " + guess + " Am I correct?");
}
else if (Input.GetKeyDown(KeyCode.DownArrow))
{
maxValue = guess;
guess = (minValue + maxValue) / 2;
Debug.Log("New guess: " + guess + " Am I correct?");
}
else if (Input.GetKeyDown(KeyCode.Return))
{
minValue = 1;
maxValue = 100;
Debug.Log("I got it right! Pick a new number between " + minValue + " and " + maxValue + ".");
guess = (minValue + maxValue) / 2;
Debug.Log("My guess: " + guess + " Am I correct?");
maxValue = maxValue + 1;
}
}
}