Fighting AI Algorithm

This is a discussion on Fighting AI Algorithm within the Game Programming forums, part of the General Programming Boards category; I just wonder what is the algorithm to create the AI in fighting games (ex: king of fighter, street fighters....). ...

  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
    Portugal
    Posts
    7,581
    Look for Finite State Machine tutorials on the web. That will do it and they are easy and intuitive to implement.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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,077
    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,077
    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, 07: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, 04: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, 11:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21