Thread: Fighting AI Algorithm

  1. #1
    Computer guy
    Join Date
    Sep 2005
    Location
    I'm lost!!!
    Posts
    200

    Fighting AI Algorithm

    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 ?
    Hello, testing testing. Everthing is running perfectly...for now

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Look for Finite State Machine tutorials on the web. That will do it and they are easy and intuitive to implement.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    I call it the Button Mashing Algorithm. It works wonders and is sure to ........ any gamer off.
    Sent from my iPadŽ

  4. #4
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    Quote Originally Posted by hdragon
    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 ?
    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.

    As for difficulty, you could try giving the AI a response time and also a random chance of messing up a move.

  5. #5
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    To make AI harder, most games seem to have them take actions more often, and let them use more complex moves.

  6. #6
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Tekken 5 on Ultra Hards is like one pre-defined 10 hit combo after another.
    At least they don't juggle.
    Sent from my iPadŽ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. chess ai contest
    By Raven Arkadon in forum Contests Board
    Replies: 7
    Last Post: 07-09-2005, 06:38 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 10:35 AM