Bomberman

Started by
0 comments, last by Zackie62 23 years, 2 months ago
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
Advertisement
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).

cu,
Prefect

---
Sanity is the trademark of a weak mind.
Widelands - laid back, free software strategy

This topic is closed to new replies.

Advertisement