+ 2

artificial intelligence with c++

how to introduce artificial intelligence in c++. like in most of games artificial intelligence is used. so, please suggest me the best book for beginners.

24th Jul 2016, 8:29 AM
Karan Luther
Karan Luther - avatar
11 Réponses
+ 1
You can make a neural network. There is one called caffe. that could maybe help you.
24th Jul 2016, 10:58 AM
_Geometry dash_ _Roh_ (AKA NovaRate0315)
_Geometry dash_ _Roh_ (AKA NovaRate0315) - avatar
+ 1
Artificial intelligence for games is significantly different from actual artificial intelligence as it is seen in science. Usually, scripting covers the most basic reactions in complex games that seem to be intelligent but this, as I already mentioned, does not constitute actual artificial intelligence. Artificial intelligence can be a time sink and as good scripting produces results that are accepted by the customer, it's easier to do that. In addition, with scripting you can offer an editor so players can create their own game part and share it with other players (co-creation increases the market value of a game while lowering the cost).
24th Jul 2016, 11:01 AM
Stefan
Stefan - avatar
+ 1
but how to do it ? like in chess if you play against computer you will find that when new game starts every time computer takes a different move.
24th Jul 2016, 11:06 AM
Karan Luther
Karan Luther - avatar
+ 1
You can make a database of moves, and go from there.
24th Jul 2016, 11:09 AM
_Geometry dash_ _Roh_ (AKA NovaRate0315)
_Geometry dash_ _Roh_ (AKA NovaRate0315) - avatar
+ 1
Jop, you can randomize and then start from this random starting point.
24th Jul 2016, 11:10 AM
Stefan
Stefan - avatar
+ 1
Also, be sure to search for AlphaGo and learn what AlphaGo does.
24th Jul 2016, 11:13 AM
_Geometry dash_ _Roh_ (AKA NovaRate0315)
_Geometry dash_ _Roh_ (AKA NovaRate0315) - avatar
+ 1
I think for chess often times the programming technique "backtracking" is used to produce possible outcomes for a maximum number of turns into the future. The chess board positions are rated and the best rated course of draws it taken then.
24th Jul 2016, 11:15 AM
Stefan
Stefan - avatar
0
Stefan, do you mean something like N-Queen?
24th Jul 2016, 11:17 AM
_Geometry dash_ _Roh_ (AKA NovaRate0315)
_Geometry dash_ _Roh_ (AKA NovaRate0315) - avatar
0
thank you guys..
24th Jul 2016, 11:18 AM
Karan Luther
Karan Luther - avatar
0
there are many backtracking techniques n-queen is one of them
24th Jul 2016, 11:19 AM
Karan Luther
Karan Luther - avatar
0
Jop, N-queen is the teaching example for backtracking. 😀
24th Jul 2016, 11:20 AM
Stefan
Stefan - avatar