d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Artificial Intelligence > Information Welcomed
Prev12
Add Reply New Topic New Poll
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Oct 27 2015 09:33pm
Quote (LiFeR @ Oct 27 2015 09:35pm)
A* is related to AI from the defintion that my class uses

the AI from computer seems to me to be script more than anything


obvious bait
Member
Posts: 8,553
Joined: Jul 21 2007
Gold: 0.00
Oct 28 2015 10:45am
Quote (Eep @ 27 Oct 2015 22:33)
obvious bait


what do u mean
Member
Posts: 8,325
Joined: Sep 22 2008
Gold: 36.32
Dec 8 2015 02:59am
information is scripted on different levels by different forces.
We are horrible at scripting
Try scripting in light
Member
Posts: 8,325
Joined: Sep 22 2008
Gold: 36.32
Jan 10 2016 12:23pm
Quote (Minkomonster @ Oct 27 2015 06:39pm)
The pathfinding is not AI though. It's just a area of mathematics called Graph Theory. Look up Dijkstra's Algorithm, A*, or even variants of Breadth First Search to give you an overview of path finding algorithms. An example of AI in Starcraft2 would be the computer choosing to build a specific tech to counter what you are building.



An example of AI in SC2 would be the computer choosing to build a specific tech to counter what you are building with no previous model built to tell it what to to*
<3 didnt realize i already commented on this.. *Note to self: Read first!!:))

This post was edited by MANGOkushLOVER on Jan 10 2016 12:29pm
Member
Posts: 226
Joined: Jan 21 2016
Gold: 0.00
Jan 21 2016 03:13am
Quote (Eep @ Oct 27 2015 07:33pm)
obvious bait


he is not baiting
Member
Posts: 1,158
Joined: Oct 5 2010
Gold: 0.00
Mar 6 2016 05:21am
You could create a custom "ant" AI,.

Displayed as a group of pixels that need to retrieve food from A to B.
If you ensure they have a random choice to move in a certain pattern, and based on trial and error ensure a certain choice gets done more than the other, they will learn.

For example you could have a stick in the middle of the path, which they can go around left or right. Left being the shorter path.
If the ant chooses to go right and returns to the hive he will inform the other ants it took X time to reach the food. Another ant informs the hive it took Y time to get the food when going left - all the ants learn left is faster, so go left next time.
You don't want it to be a 1/0 switch though, but an increment which can increase or decrease based on "experience".
One ant decides left is better, then all ants gain a 5% increase in going left there next time.
This way, if you change the obstacle, theyll go left - but perhaps RIGHT is now a better choice. Thus they'll update the choice over time.
Member
Posts: 161,550
Joined: Oct 18 2006
Gold: 4.03
Warn: 20%
Mar 7 2016 04:34am
there is no game with anything close to AI
Go Back To Programming & Development Topic List
Prev12
Add Reply New Topic New Poll