Another Number Wizard in Dutch

I made this Wizard in Dutch so my kids can play it easier.

// Start is called before the first frame update
void Start()
{
    Debug.Log("Hoi, welkom bij de Nummer Tovenaar!");
    Debug.Log("Bedenk een nummer tussen " + min + " en " + max + ".");
    Debug.Log("Is jouw nummer hoger of lager dan " + guess + "?");
    Debug.Log("Pijltje Omhoog = Hoger, Pijltje Omlaag = Lager (Duhh...) en als ik het goed heb, druk dan op Enter.");
    max += 1;
}

// Update is called once per frame
void Update()
{
    if (Input.GetKeyDown(KeyCode.UpArrow))
    {
        min = guess;
        guess = (min + max) / 2;
        Debug.Log("Is jouw nummer hoger of lager dan " + guess + "?");
    }
    else if (Input.GetKeyDown(KeyCode.DownArrow))
    {
        max = guess;
        guess = (min + max) / 2;
        Debug.Log("Is jouw nummer hoger of lager dan " + guess + "?");
    }
    else if (Input.GetKeyDown(KeyCode.Return))
    {
        Debug.Log("Ik ben echt geniaal!");
    }
}

Privacy & Terms