damirAERO wrote:
Hi to all, i need a litlle help. I have to do next task: a character will imagine one number between 1 and 100 and i have to give a correct answer. Can u give me some help in this ?
eh...
when green flag clicked
ask pick a number between 1 and 100
if (answer) = (pick random 1 to 100) [
say you got it right!
]
Offline
WindowsExplorer wrote:
damirAERO wrote:
Hi to all, i need a litlle help. I have to do next task: a character will imagine one number between 1 and 100 and i have to give a correct answer. Can u give me some help in this ?
eh...
when green flag clicked
ask pick a number between 1 and 100
if (answer) = (pick random 1 to 100) [
say you got it right!
]
That's a good way, but if you want to save the random number, use this:
when green flag clicked set [random number^] to (pick random (1) to (100)) ask [pick a number between 1 and 100] if <(answer) = (random number)> { say [you got it right!] }
Offline
damirAERO wrote:
Hi to all, i need a litlle help. I have to do next task: a character will imagine one number between 1 and 100 and i have to give a correct answer. Can u give me some help in this ?
when green flag clicked
Ask I have a number between 1 and 100, type in your guess
If answer = pick random from 1 to 100
Say correct!
Else
Say Wrong.
Offline