Book Recommendation ?
I'm looking for something that covers the more basic "old-fashioned" problems like how to actually write a chess/checkers AI or GO or basically any board game.
Obviously I will need to tailor specifics to what I'm trying to achieve, but I just don't know how to write a good "brute force" algorithm, or what a negamax actually looks like, etc.
Thanks in advance...
Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play
"Reducing the world to mathematical equations!"
My particular problem is a fairly simple board game (with very few rules) for up to 7 players. I need to brute force a couple of moves ahead and pick a best move. That's it really.
Negamax pseudocode per Wikipedia
Tons of GameDev threads on negamax
As for "brute force", there is no such thing in a generalized sense. All it means is that you do something horribly inefficient to try and check every possible situation. (Often you see a lot of nested loops iterating through all possibilities.)
Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play
"Reducing the world to mathematical equations!"
And yes, absolutely serious. I've been in pro games dev for 25 years, but there's always been AI specialists in-house, so I'm a long way behind the curve on this one.
The tanks game you might remember me asking about is my only other forray into AI, and both have come in the last few months so I guess I need to start boning up rapido, hence the book recommendations and stuff.
I do understand enough from general osmosis that negamax isn't suitable for seven players though :(
Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play
"Reducing the world to mathematical equations!"
None of which were any use as all these variants on negamax state in paragraph #1 that they're for two player games, whilst I've stated several times that my game has seven players...
Quote: Original post by Rubicon
...whilst I've stated several times that my game has seven players...
Which was not in your original post. You wanted links to negamax and brute force. If you had known ahead of time that negamax and brute force were not going to work for your 7-player game, why ask about them?
Any algorithm that is typically good for chess/checkers/go, etc. is going to fall apart for that many people because the search space gets ridiculous.
The thing I tell all people is to look at your game from the point of view of the player. What things do you take into account when you make your move? You are not likely to look too many moves ahead in a situation such as that. You are simply doing something that seems like it maximizes your immediate result while minimizing the potential to get pwnd. While that seems, at its core, like a tree-based search (e.g. minimax et al), you can also do it by simply scoring certain factors. All of this is game-dependent, of course, so further speculation about how to approach it is a problem. But that's what you are going to find in books anyway. You will have to adapt.
Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play
"Reducing the world to mathematical equations!"
And InnocuousFox, i agree with your points:look at your game from the point of view of the player.