Answer the question
In order to leave comments, you need to log in
Game bots. How are they implemented?
Hello. Bots have always fascinated me.
Recently, I have reviewed a lot of videos on the topics: "Neural Networks" and "Genetic Algorithm".
I really wanted to understand how bots work in races, for example.
After these videos and a couple of implementations of the genetic algorithm, I assumed (I had no idea at all before) that the bots work like this:
The neural network determines the state (how close we are to the wall, in which direction we are moving, the angle of rotation, etc.), the genetic algorithm learns from this data just get the best results. Most likely that such bots work simply on a neural network, and now I have 2 questions.
1) Am I right, or maybe my idea is at least close, or will it work at all?
2) I want to make a cs bot that will at least look like already implemented cs bots (against which we can play offline), are there any sources of those bots?
Answer the question
In order to leave comments, you need to log in
genetic algorithm
Neural networks are not used in games, genetic algorithms are almost the same. Game AI is built on simple clear rules that are easy to set up and debug, and "smartness" is achieved through a variety of tricks that have nothing to do with intelligence. For example, an opponent who yells "I'm throwing a grenade" before throwing will appear smarter compared to the exact same but silent one.
In general, similar questions have already been asked, do not forget to use the search.
You don't understand materiel at all. Genetic Algorithm is an optimization technique. For example, neurons.
To get started, pull up the math and understand the basics of machine learning and neurons.
Now about bots.
If you mean game AI, then Daniil Basmanov is right .
If you mean by bots agents who play games, then everything is not so simple.
In simple games or games with a small space of moves, you can still get by with hard-coded logic, but in slightly more complex ones, you can no longer.
This is where neurons and Reinforcement Learning (reinforcement learning) come to the rescue. The most striking examples are Doom ai competition or a recent video of an OpenAI agent playing against a top player.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question