Number Wizard Dominican twist

       Debug.Log("KLK! Welcome to Number Wizard!");
       Debug.Log("Pick a number! Wizards aren't chismosos...");
       Debug.Log("The HIGHEST magic number you can pick is: " + max);
       Debug.Log("The LOWEST magic number you can pick is: " + min);
       Debug.Log("Tell me if your number is higher or 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("Sube para arriba");
        min = guess;
        guess = (max + min) / 2;
        Debug.Log(guess);
    }
    else if (Input.GetKeyDown(KeyCode.DownArrow))
    {
        Debug.Log("Baja para abajo");
        max = guess;
        guess = (max + min) / 2;
        Debug.Log(guess);
    }
    else if (Input.GetKeyDown(KeyCode.Return))
    {
        Debug.Log("Eso E'! Wizaaarrrddd...");
    }
}

}

3 Likes

Looks good!

Looks nice! Congratz! :slight_smile:

1 Like

Privacy & Terms