using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NumberWizard : MonoBehaviour {
int max = 1000;
int min = 1;
int guess = 500;
// Use this for initialization
void Start () {
Debug.Log("Welcome To The Amazing Number Wizard. The Truest of the True.");
Debug.Log("After A couple tries I will accurately guess your number");
Debug.Log("NOW LETS BEGIN!!!!!!!!");
Debug.Log("Please Pick A Number Between " + min + " and " + max);
Debug.Log("NOW!! As for my first guess! IS IT! " + guess + " :-D ??? ");
Debug.Log("Push Up And i'll have to guess Higher!, Push Down i'll have to guess Lower!, But if im right you have to press ENTER!!!");
Debug.Log("So........What Is IT???????????");
max = (max + 1);
}
// Update is called once per frame
void Update (){
if (Input.GetKeyDown(KeyCode.UpArrow))
{
Debug.Log("I must Go HIGHER!");
min = guess;
guess = (max + min) / 2;
Debug.Log("Is the number in your head...... " + guess);
}
else if (Input.GetKeyDown(KeyCode.DownArrow))
{
Debug.Log("I must Go LOWER!");
max = guess;
guess = (max + min) / 2;
Debug.Log("Is the number in your head...... " +guess);
}
else if (Input.GetKeyDown(KeyCode.Return))
{
Debug.Log("Ha I was right! It was " + guess + "!!!!!!!!!!");
}
}
}