Sign in to follow this  

AI for a hockeygame

Recommended Posts

Chris_N    126
When designing a AI system for a 3d hockey simulator game, what methods should you use, I`m new to AI so a few code that describes the concepts will be very appriciated.

Share this post

Link to post
Share on other sites
uncutno    146
Thats a rather large problem. This is because you want "human" player, and most
AI methods would calculate the perfect game (witch is imposible to beat!).

my sugestion:

#Give all your players assignments: CENTERATTACK, LEFTDEFEND...

#Give all the different assignments clues on what they should do in different game states: WE_ATTACK = GO TO X, THEY_ATTACK = BLOCK PLAYERS ...

#Figure out what state the game is in, so that all players know what they should do: WE_ATTACK, THEY_ATTACK, BREAK...

#Add a game manager witch gives special players special objectives: WHEN THEY_ATTACK, NEAREST PLAYER ATTACK PLAYER WITH PUCK. (these objectives overides other objectives.)

#Add a low level AI witch gets simple commands from the higher objectives. GO TO X, TACKLE, SHOOT, CHASE Y....

#Figure out witch low level commands should be used on each high level objective...

#Add it all together, and you got a nice hocky AI :-)


Share this post

Link to post
Share on other sites
DrEvil    1148
Check out the book "Programming Game AI by Example"

Chapter 4 is an excellent example that implements a soccer game. Most of these principles can be directly applied to a hocky game.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this