// This script follows a sequence of questions.
state TuringTest {
case input answer nextQuestion();
function nextQuestion() {
n = conversation.count;
answer = "I have nothing more to say to you.";
if (n == null) { n = 0}
if (n == 0) { answer = "What is your name?"}
else if (n == 1) { answer = "My name is Alex"}
else if (n == 2) { answer = "Is the sky blue?"}
else if (n == 3) { answer = "What is my name?"}
else if (n == 4) { answer = "I like running"}
else if (n == 5) { answer = "Do I like running?"}
else if (n == 6) { answer = "My dog is big"}
else if (n == 7) { answer = "Is my dog big?"}
else if (n == 8) { answer = "What is the Internet?"}
else if (n == 9) { answer = "What is atomic physics?"}
else if (n == 10) { answer = "Who is Tom Cruise?"}
else if (n == 11) { answer = "Who are his parents?"}
else if (n == 12) { answer = "Who is his spouse?"}
else if (n == 13) { answer = "What are we talking about?"}
else if (n == 14) { answer = "Where is Toronto?"}
else if (n == 15) { answer = "Where is that?"}
else if (n == 16) { answer = "What is 4 + 6?"}
else if (n == 17) { answer = "2+2/4-3*8"}
else if (n == 18) { answer = "Okay, how about (2+4^6)/(3-√4)^2"}
else if (n == 19) { answer = "what is six = the power of two times the square root of nine"}
else if (n == 20) { answer = "very good"}
else if (n == 21) { answer = "I think you might just pass, well done."}
n = Math.add(n, 1);
conversation.count = n;
return answer;
}
}