Enjoy fast, FREE delivery, exclusive deals and award-winning movies & TV shows with Prime
Try Prime
and start saving today with Fast, FREE Delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Instant streaming of thousands of movies and TV episodes with Prime Video
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
$38.43$38.43
FREE delivery:
June 8 - 13
Ships from: Amazon Sold by: Delta Octantis Books
Buy used: $19.07
Other Sellers on Amazon
& FREE Shipping
92% positive over last 12 months
& FREE Shipping
90% positive over last 12 months
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Programming Game AI by Example 1st Edition
| Price | New from | Used from |
- Kindle
$34.42 Read with Our Free App - Paperback
$19.07 - $38.4325 Used from $13.51 9 New from $34.29
Purchase options and add-ons
- ISBN-101556220782
- ISBN-13978-1556220784
- Edition1st
- PublisherJones & Bartlett Learning
- Publication dateOctober 14, 2004
- LanguageEnglish
- Dimensions6.5 x 1 x 9 inches
- Print length495 pages
Frequently bought together

What do customers buy after viewing this item?
- Highest ratedin this set of products
The Art of Game Design: A Book of Lenses, Third EditionPaperback - Lowest Pricein this set of products
AI for Game Developers: Creating Intelligent Behavior in GamesPaperback
Editorial Reviews
From the Inside Flap
---Jeff Orkin, AI architect, Monolith Productions, No One Lives Forever 2 and F.E.A.R
"...a nice combination of a lot of really useful information, put together in a way that doesnt make my brain leak."
---Gareth Lewis, Project leader, Lionhead Studios, Black & White 2
"Each chapter of Mats book gently introduces the reader to a fundamental game AI technology before expanding the new idea into a fully formed solution replete with extensive code and clearly worded examples. The tone of the book is uncomplicated and accessible to the reader, allowing a novice programmer the opportunity to get to grips with the basics of game AI programming by implementing their own systems direct from theory or expanding upon code examples offered to gain understanding in a sandbox environment. Once individual technologies are fully understood, the book goes on to combine these ideas into several complete game environments allowing the reader to understand the relationships between the interacting systems of an overarching game architecture."
---Mike Ducker, AI programmer, Lionhead Studios, Fable
"Using easy-to-follow and well-described examples, this book shows you how to use most of the techniques professional AI programmers use. A great introduction for the beginner and an excellent reference for the more experienced!"
---Eric Martel, AI programmer, Ubisoft, Far Cry (XBox)
"Programming Game AI by Example is an excellent book for the game programming neophyte, the intermediate programmer, and even the expert - it doesnt hurt to go over familiar ground, does it? The book concisely covers all of the important areas, including basic maths and physics through to graph theory and scripting with Lua, to arm any programmer with the tools needed to create some very sophisticated agent behaviours. Unusually for books of the type, Programming Game AI by Example is solid in its software engineering too, with the example code demonstrating game uses of familiar design patterns. Id have no qualms about recommending Programming Game AI by Example to any programmer. Its an excellent read and an excellent springboard for ideas."
---Chris Keegan, Technical director, Climax Studios (Solent)
About the Author
Product details
- Publisher : Jones & Bartlett Learning; 1st edition (October 14, 2004)
- Language : English
- Paperback : 495 pages
- ISBN-10 : 1556220782
- ISBN-13 : 978-1556220784
- Item Weight : 1.5 pounds
- Dimensions : 6.5 x 1 x 9 inches
- Best Sellers Rank: #391,313 in Books (See Top 100 in Books)
- #104 in Computer & Video Game Design
- #206 in Game Programming
- #1,162 in Computer Software (Books)
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read author blogs and more
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
The book starts with a quick primer on math and physics. The basics are explained, like Cartesian coordinates, trigonometry, vectors, coordinate spaces, and some physics. Like most people reading a book of this level, the beginning was a light refresher. However, I’m a big stickler for reading books from cover to cover with no skipping around, so I did not mind a short recap. Next Buckland gets into state-driven design and demonstrates a simple command-line app using the concepts. I found this approach successful, and it was able to show the concepts without complex 2D or 3D math getting in the way.
He followed up with autonomous moving agents, mostly based on steering behaviors. I was already somewhat familiar with steering behaviors, but I found the author’s description and code to be clear and concise and explained the concept better than I’ve seen before. He then applies the previous topics to a simple soccer game. This was a great next step, and really compiled the knowledge being taught into something concrete. In the next chapter, the author went into graphs; what they are, how to use them, and some popular algorithms link Dijkstra and A*. I always wanted to know what A* was, and this book explains it fairly well.
Buckland then devotes a section to cover scripting languages and why they are useful. In this case, he chose Lua (not a bad choice) and explains some basics about the language, how to interface it with C++, and creates a simple finite state machine. This chapter is helpful even if you’re not coding AI and just need a scripting language for your game or engine (provided you like Lua). In fact, a lot of the concepts in this book are generic enough that they can be applied to multiple fields of interest for game developers.
Next, the author creates a simple overhead game framework used in the subsequent examples. Using this framework he then shows practical path planning, goal driven agent behavior, and finishes up with fuzzy logic. Fuzzy logic is another one of those buzzwords that always intrigued me but I never really understood. Buckland concludes with a quite excellent explanation of the concept.
Overall I found this book to be stellar on all accounts. I feel that any game developer could gain insight from this text, even if they aren’t primarily working with AI programming. The scripting coverage could be used in many games, and the algorithms covered are generic enough to apply to different disciplines. While this is the first book I’ve read on AI, I really can’t imagine a better introduction. Highly recommended.
With all the college courses and graduate studies devoted to the field of artificial intelligence, this book could have easily drowned itself it excessive theory. Thankfully, this did not happen. The author is truly able to give concrete examples and demonstrate the applicable methodologies. Not only do the examples given in the text convey the lessons in AI so clearly, they could easily be employed in your own projects.
I have given myself plenty of time not only to read the book, but generate my own AI code inspired from the book. It really is the perfect blend of theory, practice, and examples. If you are looking for an entry level AI book that will also deliver you into the intermediate stages of AI programming, this is the book you have been looking for.
I would highly recommend anyone who purchases the book to check out the source code that can be found on the companion website. It not only offers the source code from the book, but also the standalone executables that run the programs discussed. As AI behavior is such a dynamic phenomenon, it really lends itself to view the examples in motion alongside the text. That's why these programs are so helpful. Additionally, one can tell a lot of care was put into constructing these programs to really demonstrate the main point of each topic.
As an aside, chapter 2 of this book is an exceptional chapter for those interested in game engine design. It primarily deals with state-driven design and finite state machines, but also discusses game entities and their management along with message handling. While the topics in this chapter deal with AI behavior, their applications go far beyond AI and could easily be applied to many other features of games and software.
An entire chapter on HOW to script in lua could have been done away with (thats what tutorials are for) and instead been used for concepts of how it can be used. Plus I felt it was slightly out of place as I do not recall it being used in the final game either.
I am trying to code a game in flash actionscript and for that this book was not very helpful as I do not have all the libraries that the author uses in his source code and would have appreciated a book with a broader application. Personally I thought the book was merely OK, but realizing that because I didn't find it useful doesn't necessarily mean its bad, I'm giving it a 4.
Top reviews from other countries
It is the first book I've seen that makes a good effort to present solutions that would actually be used in real games. Which surprised me, because Mat's first book on game AI was just like every other title I've read: a blend of hype and unusable technology. With this book he has come on by miles.
I'm AI programmer in the industry, and this is the first book I've seen that I could hand-on-heart recommend for real technology (John Funge's book is also good, but as an overview, not for practical implementation).
There are some bits (such as the scripting chapter) that are squarely aimed outside the industry, but provide superb material for a hobbiest. The majority of the book is filled with technology that covers the very basics of game AI for novice AI developers. And there are some bits (like the goal oriented behaviour chapter) that could actually benefit people working on commercial games.
There are bits I disagreed with, inevitably.
My biggest criticism of the book is its narrow scope. It covers a handful of AI techniques well, but doesn't talk about the tens of other techniques that game AI programmers need to use to get the game out of the door. It also misses lots of techniques used in particular game genres (it is focussed primarily on shooters, although there is a chapter with some small inspiration for sports games). Some of this is because of size, but it means that the book can only act as a taster and not a real reference book.
Mat's writing is chirpy and readable, and so far the code is reasonably correct and useful. I would recommend it if you are a hobbiest game developer, but its probably far beneath you if you already work in AI in the industry.
start (in fact I still refer to that section a year later). Then a nice gentle intro with FSMs (although, on my girlfriends orders, I had to rewrite the tasks given to the Miner's Wife). From there it's Steering Behaviours, Sports AI, Pathfinding etc (all the usual suspects) but the examples for each are superb. I did struggle slightly translating the code
(pseudo-code would have been nice) but that's a minor point.
A bit heavy on the maths for some perhaps but I guess that is the nature of the topic so the way the author deals with it is exceptionally well done.
The examples are great and really show the good and bad methods. I've seen both in games I own since reading this book and know how their underlying coding works now.
Well worth buying though the full price is steep so I got a second-hand copy...
Still, worth a read because the AI descriptions are very well put together.











