so, I have been working on something along the lines of a computer controlled version of snake.. and i have gotten most of it done, but i am having so many issues getting the artificial intelligence to work right.

so far, i have it set up so that the head of the snake constantly moves toward the dots it is trying to pick up.

And i also have it set up so that every frame it checks to see if there is another block in its path. the problem is, once it knows there is something in the way, it cant seem to figure out how to get around it.

in other words, i dont know what to tell it to do once it notices it is about to die.

does any body have any ideas? i can post the fla or a bit of code if it would help any body.

any help would be much appreciated

thanks so much,
-Neil