Number Wizard Start() Method

void Start()
    {
        // user instructions
        Debug.Log("Greetings traveller, the Realm of the Number Wizard awaits!");
        Debug.Log("Contemplate a magical integer. You must suppress the desire to reveal it to me!");
        Debug.Log("The highest number you may choose is: " + max);
        Debug.Log("The lowest number you may choose is: " + min);
        Debug.Log("You have had ample time to ponder this task... prepare to be amazed!");
        Debug.Log("Tell me if your number is higher or lower than " + guess);
        Debug.Log("Press the Up Arrow = Higher, Press the Down Arrow = Lower, Press ENTER = Correct!");

        // increment the max variable so the maximum guess can reach the full value since min starts at 1 instead of 0
        max = max + 1;
    }
1 Like

Excellent!!

Privacy & Terms