I just wonder what is the algorithm to create the AI in fighting games (ex: king of fighter, street fighters....). Also, are there any formulas to calculate the difficulty of the AI in those games ?
Printable View
I just wonder what is the algorithm to create the AI in fighting games (ex: king of fighter, street fighters....). Also, are there any formulas to calculate the difficulty of the AI in those games ?
Look for Finite State Machine tutorials on the web. That will do it and they are easy and intuitive to implement.
I call it the Button Mashing Algorithm. It works wonders and is sure to ........ any gamer off.
Well just think about it. How would you do it? One way could be to have the AI try to figure out the moves the player is performing and either counter-attack or try to defend.Quote:
Originally Posted by hdragon
As for difficulty, you could try giving the AI a response time and also a random chance of messing up a move. :D
To make AI harder, most games seem to have them take actions more often, and let them use more complex moves.
Tekken 5 on Ultra Hards is like one pre-defined 10 hit combo after another. :p
At least they don't juggle.