Archived

This topic is now archived and is closed to further replies.

Snake AI

This topic is 6358 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have just finished making a snake program that allows Human vs CPU mode. the CPU playes by following the food any ware. how can I program it so it can trap the human player? And how can I program it so it dont go in dedend paths? I programmed the game by using a (2) dimentional array for the map (the area to play in) and store the indexes of the snakes on the map in a (1) dimentional array (an array for each Snake). Edited by - Majed on 7/18/00 7:42:35 PM

Share this post


Link to post
Share on other sites