Jump to content
  • Advertisement


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



This topic is 6380 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

Hello everybody, I code a bomberman clone with a 2player mode. But know I want to have artificial intelligence. Can somebody help me with it cause i have no idea to code it. The game is written with visual c++ for windows. Thanks Zackie62 Your answers to Zackie62@gmx.de

Share this post

Link to post
Share on other sites
First of all start by deciding the basic way your AI should work, i.e. neuronal net/genetic algorithms or just an FSM-like system / hardcoded behaviour.

If you want to have a hardcoded behaviour, I''d start off with simply running around and avoiding bombs. This could be hard enough Take care of the bomb-placing stuff later.

How to avoid bombs? I''d first write a function that determines whether a given tile is in danger of being bombed or not. Then you need one to search the closest tile that is not in danger of being bombed and move towards it. For the searching I''d use some kind of flood search (so you''re doing the pathfinding at the same time).


Sanity is the trademark of a weak mind.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!