run that, if you start by guessing a single digit 8 and your second guess is double digit 13 then it brings up this thing that says the variable result is not defined, and result is not a variable. it does the same thing if you start with a two digit number that ends with 0 and your second guess is a double digit that ends in a non zero number then it does the same thing. why???
set start to {“1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “11”, “12”, “13”, “14”, “15”, “16”, “17”, “18”, “19”, “20”, “21”, “22”, “23”, “24”, “25”, “26”, “27”, “28”, “29”, “30”, “31”, “32”, “33”, “34”, “35”, “36”, “37”, “38”, “39”, “40”, “41”, “42”, “43”, “44”, “45”, “46”, “47”, “48”, “49”, “50”, “51”, “52”, “53”, “54”, “55”, “56”, “57”, “58”, “59”, “60”, “61”, “62”, “63”, “64”, “65”, “66”, “67”, “68”, “69”, “70”, “71”, “72”, “73”, “74”, “75”, “76”, “77”, “78”, “79”, “80”, “81”, “82”, “83”, “84”, “85”, “86”, “78”, “88”, “89”, “90”, “91”, “92”, “93”, “94”, “95”, “96”, “97”, “98”, “99”, “100”}
set guess to (item (random number from 1 to (length of start)) of start)
set finaly to (guess) as integer
display dialog “guess what number i picked (1-100)” default answer “”
set guessed to the text returned of the result as integer
if guessed is equal to finaly then display dialog “You win!”
if guessed is greater than finaly then display dialog “to High, guess again” default answer “”
if guessed is less than finaly then display dialog “to low, guess again” default answer “”
set guessed to the text returned of the result as integer
if guessed is equal to finaly then display dialog “You win!”
end
if guessed is greater than finaly then display dialog “to High, guess again” default answer “”
if guessed is less than finaly then display dialog “to low, guess again” default answer “”
set guessed to the text returned of the result as integer
if guessed is equal to finaly then display dialog “You win!”
end
if guessed is greater than finaly then display dialog “to High, guess again” default answer “”
if guessed is less than finaly then display dialog “to low, guess again” default answer “”
set guessed to the text returned of the result as integer
if guessed is equal to finaly then display dialog “You win!”
end
if guessed is greater than finaly then display dialog “to High, guess again” default answer “”
if guessed is less than finaly then display dialog “to low, guess again” default answer “”
set guessed to the text returned of the result as integer
if guessed is equal to finaly then display dialog “You win!”
end
if guessed is greater than finaly then display dialog “to High, guess again” default answer “”
if guessed is less than finaly then display dialog “to low, guess again” default answer “”
set guessed to the text returned of the result as integer
if guessed is equal to finaly then display dialog “You win!”
end
if guessed is greater than finaly then display dialog “to High, guess again” default answer “”
if guessed is less than finaly then display dialog “to low, guess again” default answer “”
set guessed to the text returned of the result as integer
if guessed is equal to finaly then display dialog “You win!”
end
if guessed is greater than finaly then display dialog “Aww too bad your last guess was too high my number was (finaly).”
if guessed is less than finaly then display dialog “Aww too bad that your last guess was too low, my number was (finaly).”