Currently Online

Latest Posts

Topic: Improving the AI

the-x
Avatar
Joined: 2019-01-19, 13:23
Posts: 91
Ranking
Likes to be here
Posted at: 2019-07-10, 12:14

I have played hundreds of games the last days, with AI, self swapping to AI optimzing it and giving it back to AI, or let my build play from AI on. So I have lots of Ideas and improvements to make a script based AI better. The only problem is that i have not enough programming skills so, maybe I can swap my Ideas with womeone who is good in programming and we can try to implement the Ideas.

Most important thing is that I want an AI that trains faster, so for single player its more fun and can even be challenging to play games with some AIs versus yourself on small maps.


Top Quote
Tibor
Joined: 2009-03-23, 23:24
Posts: 1233
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2019-07-10, 18:55

Ideas are always welcomed, especially low-hanging fruits, where coding needed is up to few hours and outlook for success is high. Therefore it would be very convenient if you knew the current AI code to know what changes are easy to implement.

Sometimes ideas described in few sentences can require hundreds of hours of coding.

So we can start with some easy fixes and discuss them at least.


Top Quote
the-x
Avatar
Joined: 2019-01-19, 13:23
Posts: 91
Ranking
Likes to be here
Posted at: 2019-07-12, 16:08

Yes, that would be great The main thing I want to do first is have a closer look on the build order, cause there many changes could be made, this should be relatively easy to implement?- maybe later i also want to develop 2 different AIs, like rushing as efficiently as possible and one going more for economy


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 635
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2019-07-12, 16:29

First of all we should clarify some things in the beginning.

AI has no fixed order or anything like that. Basically it picks a couple of fields and evaluates the possibiliteis on these fields. Then it makes a ranking of the possibilities due to a lot of decisiongates and weights (this is where the genetic algorithm with all the values defined kicks in).
Furthermore the Ai is tribe and map agnostic as we need to aim to have it working under every circumstance.
Different character are possible though by giving different values to the weights. But until we have still lots to do we skipped training a different character (for different win conditions e.g.)


Top Quote
Tibor
Joined: 2009-03-23, 23:24
Posts: 1233
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2019-07-12, 19:35

Two more points to add:

  • we have something like "basic economy" concept, it would be good if you make yourselves familiar with this, just search this site, it was discussed couple of times
  • It is possible to have multiple sets of genetic algorithm's numbers, but the main problem here is that such training is very time consuming so we are barely able to train one set of DNA numbers.

Top Quote