Questions tagged [game-ai]

Artificial intelligence techniques applied to video games.

Artificial Intelligence in video games is often used to provide behavior for Non Playing Characters or NPCs. The topic is very broad, depending on the game type it can cover:

  • Environment Understanding
    • Visual Stimuli detection
    • Auditory Stimuli detection
    • Space analysis
  • Navigation
    • Path finding
    • Path following
    • Steering Behaviors
  • Knowledge Representation
  • Behavior Selection techniques
    • Finite State Machine
    • Fuzzy State Machine
    • Goal Oriented Action Planning
    • Behavior Tree
  • Multi-Agent communication
    • Group or Squad coordination
  • Tactics and Strategies
  • Animation selection
  • Feedback systems
  • Scripting systems

It generally does not cover topics such as machine learning and parameter optimizations. Since game designers usually want to give a specific experience to the player, we usually rely on techniques that allow designing the behavior rather than having them learned and have little to no control over the decision making.

89 questions
0
votes
2 answers

When to start braking when heading for a position?

With only 1 dimension, you want to get to position X and stop there. you have a maximum acceleration A you can apply yourself; each frame you choose what direction to accelerate. So if you have a velocity V, and want to stop at position X as fast as…
user2154768
  • 890
  • 3
  • 8
  • 16
0
votes
1 answer

The best way to handle AIs in Java performance-wise. (Seperate Threads vs single update Thread)

I am making a game in Java. The game is seperated into three threads at the moment (A spawner thread, an update thread, and a draw thread) The spawner spawns an enemy that moves towards the player. After about 800 spawn, the game starts to lag…
Tikitaco
  • 69
  • 7
0
votes
2 answers

Javascript/HTML5 - Trying to make a simple game AI

My concept is rather simple. Animate an image one way, then make it come back. var xPos = 10; function main(){ window.requestAnimationFrame(main); var canvas = document.getElementById("myCanvas"); var c = canvas.getContext("2d"); …
starscape
  • 2,739
  • 5
  • 26
  • 36
0
votes
2 answers

artificial intelligence with objective-c code : to make it work, it should do 3 things

I know that an AI should do 3 things: 1.Collect Data. 2.Process Data. 3.Predict The NextData that will be collected. I believe that i should use a dataBase to collect all the data. In a game like (Tic Tac Toe, Chess, ... etc) on a iOS device, i…
Ion Utale
  • 551
  • 1
  • 9
  • 22
0
votes
1 answer

Java Slick making character rotate to selected degree

I have run into a issue while coding my game. I am using Slick Libraries and Light Weight Java Games libraries. I am trying to make my player (Plane) go to a certain area on the map. For example if I set the target coords to (50,50) My plane will go…
0
votes
2 answers

how to write AI's into my app

hey I'm writing an android app to play a simple card game (Dutch Blitz) I have a simple algorithm already made but I was wondering if I needed to run AI's as a new Thread or somehow integrate it into the main thread, or if anyone else has some good…
Darrellii
  • 47
  • 1
  • 6
0
votes
2 answers

How to find what direction the player is in from an enemy?

I have managed to get the enemy ai moving towards the player using this code (python and pyglet): (dx, dy) = ((player.x - self.x)/math.sqrt((player.x - self.x) ** 2 + (player.y - self.y) ** 2),(player.y - self.y)/math.sqrt((player.x -…
user1237200
  • 149
  • 4
  • 13
0
votes
2 answers

Arcade Fighting Game AI

I need to build the AI for an opponent in an arcade style fighting game, very similar to Mortal Kombat. I don't want to use random moves for the computer, but I would like to have an AI that is harder to beat. Where can I start looking for resources…
Cristian Toma
  • 5,662
  • 2
  • 36
  • 43
-1
votes
1 answer

Tic-Tac-Toe Computer Logic

I am trying to make a Tic-tac-toe game where the user gets to select whether they would like to play a single player game or a two player game. I have gotten both of them to work but am trying to make the AI have some logic as to where it places its…
-1
votes
1 answer

Tic tac toe implemented with lisp is finishing game instead of making a single move

I'm making a simple CLI tic-tac-toe game with an AI that uses a negamax algorithm with alpha-beta pruning using LISP and I am having problems with how the AI makes its move. Instead of making the single move that it should, it is playing out the…
Christian.M
  • 173
  • 8
-1
votes
1 answer

Snake AI weird actions (Wrong moves)

So, I create my own Snake game with AI, but now I have very-very weird snake actions. Video So, my algorithm is: Get map with: 1 - path is clear, 0 - no path(walls, snake) Get fruit position Get SnakeAI head position Send it to A* algorithm(work…
JohnDow
  • 1,242
  • 4
  • 22
  • 40
-1
votes
1 answer

Game ai Line of Sight Python

How would I check to see whether the player is within range of a mob? (I am making a top down game in pyglet) I am making it so that the mobs follow and attack the player if he is within a certain distance of them but I am unsure how to efficiently…
user1237200
  • 149
  • 4
  • 13
-2
votes
1 answer

Human realistic AI for game bots

What strategys exist for creating ai game bots that play like humans? Could someone guide me where to find more information on this topic?
Ryan
  • 1
  • 3
-3
votes
1 answer

Understanding Neural Network Basics on small Game example

I have a simple implementation of a simple game in Python. The Game has simple rules: 2 Players play against each other Every player has 10 cards Each round the players play a card simultaneously The Player who played a higher card wins the…
greece57
  • 421
  • 1
  • 6
  • 16
1 2 3 4 5
6