Jump to content
  • Advertisement

Archived

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

Majed

Snake AI

This topic is 6551 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
Advertisement
This all depends on your code, how you''ve stored your map or maze and how you store the snakes position(s). You''d have to explain a bit more.
- Ben

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!