@ Pincho > Ducks are intelligent..
They can find food , Breed and evade prey thus they have intelligence
And the reason I used OTHER rather than maybe is because other than etaing or not eating the APPLE you could throw it give it away cut it or various other things. The MAYBE would be a RND statement in front of the IF statements to decide if it would do 1 or more different things in the responce to having an apple. So I was right in using the OTHER as an option. (As I didn't want to list loads of courses of action)
@ Chris Knott > A vehicle dragging a trailer would not be AI as the trailer is joined (parented) to the vehicle and so has no option to do anything but follow it. the second box in the post would change direction because the first box had changed direction not because there was something joining them together.
any program you build has a small amount of AI it must have other wise it would become a rolling demo. Any IF statements you put into a program will change the course of a program based on user or other program code input. This is intelligence a responce based on something else.
@ Moonshine > this box chasing the other box is AI for games. And it is that simple as box 2 chases box 1. for egsample replace box 1 with a military plane and replace box 2 with a missile object. as simple as that you've created an AI guided missile.
Other uses in AI for the box chase could be an assasin stalking its prey with the addition of a line of code the box could stop at a set distance from the other as though it were waiting for a clear shot. Another line of code could resume the chase if the second box moved out of firing range for the assasins bow.
There are probably loads of other uses for the basic box chase AI code.
Making the code to do the revers would result in haveing code for an enemy unit running away in terror trying to get as far away as possible from your character. Or perhaps a magnetically sheilded door could drive away bullets. Who knows.?
You just need a bit of imagination to see that the AI may be simple but combined with other simple AI could create an advanced AI character or smart bomb or again who knows?
I'm a bit tired at the moment been to see LOTR3 and my but is numb so I hope this makes sense.
Ok so its not a mouse.