Hello. I need help with the AI that I am writing for a bomberman-type game I am making. Seeing as how I've never done any "real" AI for any of my games, I don't really have a clue what I'm doing. Up until a couple of days ago I thought I was doing okay, but the more code I write, the more weird the AI acts.
Does anyone know where I could find some tutorials, books, source code, or anything else that could help? I REALLY want to get this to work.
Basically, this is how my code works:
Every time something relevant happens (bomb layed, player died, item dropped, etc..) a message gets sent to the player. The ProcessMessage function then generates an importance level for 5 different actions (keep moving, get item, avoid explosions, kill player, destroying blocks), and adds the best choice to a list. About every half a second or so the player's go though there list of actions and insert them into a list of 2 orders based on the importance level, and prepares the neccessary information for completing the order (like a path).
Is that a good way to go about it? Or is it retarded? Please help!
Thanks