July 27, 2010

Modeling Child thought

Modeling the way a child thinks

////////////////////////////////////////////////
var parentsResponse = "no"
var wishlist = ["fruit snacks","drink yogurt", "goldfish", "ceral bars"]

for each item in wishlist
{

repeat random(50)
{ ask ("Can I have " + item)}

}
/////////////////////////////////////////////////////
Notice that parentsResponse doesn't change

No comments:

Post a Comment