+ 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.
11 Réponses
+ 1
You can make a neural network. There is one called caffe. that could maybe help you.
+ 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).
+ 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.
+ 1
You can make a database of moves, and go from there.
+ 1
Jop, you can randomize and then start from this random starting point.
+ 1
Also, be sure to search for AlphaGo and learn what AlphaGo does.
+ 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.
0
Stefan, do you mean something like N-Queen?
0
thank you guys..
0
there are many backtracking techniques n-queen is one of them
0
Jop, N-queen is the teaching example for backtracking. 😀