Hey there name's Luis take care of my Senpais!

just a fellow weeb looking to lean hoping to find a passion. so ofcourse as a fellow weeb my number wizard supposed to be a tsundere

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NumberWizard : MonoBehaviour
{

int max = 1000;
int min = 1;
int guess = 500;

// Start is called before the first frame update
void Start()
{

    Debug.Log("Senpai? you again? fine il play number wizard with you...");
    Debug.Log("pick a number, or not ... BAKA");
    Debug.Log("Hmm your highest number has to be: " + max);
    Debug.Log(" Uhh your lowest number must be: " + min);
    Debug.Log("UGH! tell me if its 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(" its Higher?");
        min = guess;
        guess = (max + min) / 2;
        Debug.Log(guess);
    }
    else if (Input.GetKeyDown(KeyCode.DownArrow))
    {
        Debug.Log("lower? oof!");
        max = guess;
        guess = (max + min) / 2;
        Debug.Log(guess);
    }
    else if (Input.GetKeyDown(KeyCode.Return))
    {
        Debug.Log("YAY I always knew it :P");
    }
}

}

2 Likes

Welcome to our community! :smiley:
First time I see a number wizard tsundere! xD Fantastic!