My greeting

Debug.Log("hello, Because i am tRingn to plAy with you And your mind, So you can remember me I'Ll propose a challenge");
Debug.Log("I don't know if you get that the first phrase, has uppercase words to make the word BRASIL");
Debug.Log("But anyway, if you don't get what I was thinking I'll try to guess, what you are thinking");
2 Likes
Debug.Log("Namaste, welcome to Number Wizard")
1 Like
Debug.Log("Buna(Hi!) from Romania(Europe)");
1 Like
Debug.Log("I am the Great and Powerful Number Wizard!");
Debug.Log("You must choose a number, but share not what it may be.");
Debug.Log("Though I am wizard, my magic is limited. You must not" + "\n choose a number higher than " + max + ".");
Debug.Log("Your number also mustn't be lower than " + min + ".");
Debug.Log("The ebb and flow of magic has clouded my vision. Is your number" + " higher or lower than " + guess + "?");
Debug.Log("Push Up = Higher, Push Down = Lower, Push Enter = Correct");
max = max + 1;
2 Likes
Debug.log("Privet narod, dobro pojalovat' v Volshebnij Nomer");
1 Like

Debug.log(“Olá a todos, My name Mauricio, I’m from Brazil.”);

1 Like
Debug.Log("Hey hey hey, its time to try out Number Wizard!");
1 Like
 Debug.Log("Welcome mortal, I am the Number Wizard.");
 Debug.Log("Pick a number but do not utter it.");
 Debug.Log("Choose a number between " + min + " and " + max + ".");
 Debug.Log("Tell me, mortal. Is your number " + guess + "?")
2 Likes

Okay guys,
I am a total newbie to this language.
After seeing this lecture I have tried to tweak it in a small way.

Here’s my Code:-

public class NumberWizard : MonoBehaviour
{
    int max = 1000;
    int min = 1; 
    int guess = 500;

    // Use this for initialization
    void Start ()
    {
        Debug.Log("Namaste! Welcome to the Game of Numbers");
        Debug.Log("Are you ready to play?");
        Debug.Log("Press 'E' to continue");
     }
	
	// Update is called once per frame
    void Update ()
    {
        if (Input.GetKeyDown(KeyCode.E))
        {
            Debug.Log("Pick A Number in your mind..");
            Debug.Log("Don't tell me what it is, well not yet atleast");
            Debug.Log("Highest Number is: " + max);
            Debug.Log("Lowest Number is: " + min);
            Debug.Log("Let's get started then.");
            Debug.Log("Is your number:" + guess);
            Debug.Log("If it's correct press Enter");
            Debug.Log("If it's lower, then press the Down Arrow");
            Debug.Log("If it's higher, then press the Up Arrow");
            max = max + 1;
        }
        if (Input.GetKeyDown(KeyCode.UpArrow))
        {
            Debug.Log("Oh, so it's higher, Let me guess again");
            min = guess;
            guess = (max + min) / 2;
            Debug.Log(guess);
        }
        else if (Input.GetKeyDown(KeyCode.DownArrow))
        {
            Debug.Log("Well, its lower, Umm is it");
            max = guess;
            guess = (max + min) / 2;
            Debug.Log(guess);
        }
        else if (Input.GetKeyDown(KeyCode.Return))
        {
            Debug.Log("Voila! Where's my coffee at?");
        }



    }
}
3 Likes
        Debug.Log("Suh.. This is Number Wizard gee it a go.");
        Debug.Log("Get a number in your head");
        Debug.Log("You canny go higher than: " + max);
        Debug.Log("You canny go lower than: " + min);
        Debug.Log("Tell me if your number is higher or lower than 500");
        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("Right so you're saying it's higher then?");
            min = guess;
            guess = (max + min) / 2;
            Debug.Log(guess);
        }
       else if (Input.GetKeyDown(KeyCode.DownArrow))
        {
            Debug.Log("Okay, all right, its lower i knew that.");
            max = guess;
            guess = (max + min) / 2;
            Debug.Log(guess);
        }
       else if (Input.GetKeyDown(KeyCode.Return))
        {
            Debug.Log("Told you i knew what it was.");
        }

        }
1 Like

My minimalist greeting approach for those geeks who use console. :grinning:

public class NumberWizard : MonoBehaviour
{
    int min = 1;
    int max = 1000;
    int guess = 500;
    bool firstPlay = true;

    private void Start()
    {
        min = 1;
        max = 1000;
        guess = 500;

        StartGame();
    }

    void StartGame()
    {
        if (firstPlay)
        {
            Debug.Log("Hello Player. Pick an integer, highest =" + max + ", lowest = " + min);
            Debug.Log("Enter key if right. Up arrow if low. Down arrow if high.");
        }

        Debug.Log("My guess is " + guess);

        max += 1;
    }

        // Update is called once per frame
        void Update()
        {
            if (Input.GetKeyDown(KeyCode.UpArrow))
            {
                min = guess;
                NextGuess();
            }
            else if (Input.GetKeyDown(KeyCode.DownArrow))
            {
                max = guess;
                NextGuess();
            }
            else if (Input.GetKeyDown(KeyCode.Return))
            {
                Debug.Log("I win!");
                firstPlay = false;
                Start();
            }
        }

        void NextGuess()
        {
            guess = (max + min) / 2;
            Debug.Log("Is it higher ^ or lower v than... " + guess + "?");
        }
}
    Debug.Log("Welcome, young arcaner, to the academy of Mathemagic!");
    Debug.Log("As a demonstration of your instructor's power, I will accurately guess a number that YOU pick!");
    Debug.Log("I will allow you to choose any number up to: " + max);
    Debug.Log("The lowest number you may pick is: " + min);
    Debug.Log("Tell me if your number is higher or lower than 500");
    Debug.Log("Push Up = Higher, Push Down = Lower, Push Enter = Correct");
1 Like

Hi Guys!

As a fellow Aussie, Rick inspired me to play out an important scene from our pub culture, who’s shout next?
I’ve included the Higher, Lower, and Win text - Enjoy!

Debug.Log("Hi! Um, Welcome to Number Wizard!");
Debug.Log("Sorry I'm a tad nervous.");
Debug.Log("I don't really have a true wizard-y name, but I just learned my first spell");
Debug.Log("and I want to try it with you!");
Debug.Log("...Don't give me that look it's perfectly safe!");
Debug.Log("I promise it won't turn you into a newt... (yet)");
Debug.Log("Alright, using your brain parts, pick a number...");
Debug.Log("WAIT! Before you pick, there's a couple of rules.");
Debug.Log("It can't be higher than " + max + ".");
Debug.Log("Or lower than " + min +".");
Debug.Log("...");
Debug.Log("Look, we can't all be Merlin in a day.");
Debug.Log("So is your number is higher or lower than " + guess + "?");
Debug.Log("(Push Up = Higher, Push Down = Lower, Push Enter = Correct)");

My first contribution - enjoy :slight_smile:

        Debug.Log("Yo mate, up for a little mind kind of game?");
        Debug.Log("Just think of a number and don't share it..");
        Debug.Log("Oh right, a little something. Keep it below " + max);
        Debug.Log("and don't go negative. " + min + " is the lowest I'll settle for.");
        Debug.Log("Alrighty then. Is it higher og lower than " + guess + "?");
        Debug.Log("Press up for higher, press down for lower or press enter if it's right on!");
1 Like
    Debug.Log("We're going to play a little game");
    Debug.Log("Try picking a number... you know I'll guess it!");
    Debug.Log("Don't be going Higher than: " + max);
    Debug.Log("Or any lower than: " + min);
    Debug.Log("Tell me if your number is lower or higher than" + guess + "?");
    Debug.Log("Press up arrow if it's higher, Push Down if it's Lower and Enter if I'm Correct");
1 Like
Debug.Log("NAMASTE, Welcome to NUMBER WIZARD!");

“Welcome traveler! I am the number wizard…”

1 Like

" ‘Jo napot’ , I am the mighty Numb-er Wheez-ard!"

Debug.Log("Namaskar mandali!!!! kas kay bar ahe ka pavnah");

Privacy & Terms