My greeting

This is what I was going to put, but I realized that the Debug.Log call has a limited number of arguments you can put in it. I’ll probably be revising it to make it work correctly.

Debug.Log("Howdy! I'm the number wizard.");
        Debug.Log("Pick yourself a number between " +minGuess, " and ", +maxGuess, "but don't tell me what it is." );
        Debug.Log("The highest number you can pick is: " +maxGuess);
        Debug.Log("The lowest number you can pick is: " +minGuess);
        Debug.Log("Tell me if your number is higher or lower than " +plrGuess);
        Debug.Log("If I guessed too low, push UP. If I guessed too high, push DOWN. Push ENTER if I got it right.");

“Welcome to my humble abode. You are in the presence of the Number Wizard…”

I have these neat little checkmarks if Enter is pressed. :nerd_face:

Debug.Log("✓ I guessed right. Simple mathematics... ✓");

Im English so my greeting is…

‘Keep calm and enjoy the number wizard game (with a cup of tea)’

:smile:

    Debug.Log("I am the wizard mind reader, let me read your mind...");
    Debug.Log("Please think of a number");
    Debug.Log("The highest number you can pick is " + max);
    Debug.Log("The lowest number you can pick is " + min);
    Debug.Log("Is your number higher, lower or even to " + guess);
    Debug.Log("Press Up for higher, Down for lower, and Enter my guess is correct");
    max = max + 1;

}

// Update is called once per frame
void Update()
{
    if (Input.GetKeyDown(KeyCode.UpArrow))
    {
        Debug.Log("Yes I thought it was higher");
        min = guess;
        guess = (min + max) / 2;
        Debug.Log(guess);
    }
    else if (Input.GetKeyDown(KeyCode.DownArrow))
    {
        Debug.Log("Ah yes lower as I predicted");
        max = guess;
        guess = (min + max) / 2;
        Debug.Log(guess);
    }
    else if(Input.GetKeyDown(KeyCode.Return)) 
    {
        Debug.Log("Ha I am a mind reading WIZARD!");

    }

Privacy & Terms