MailRuChamps / raic-2020

GNU General Public License v3.0
26 stars 27 forks source link

bug building builder unit and ranged unit simultaneously whithout enough resources #120

Closed wala8963 closed 3 years ago

wala8963 commented 3 years ago

I play locally against an older version of my AI

ROUND 188 : bug1 ROUND 189 : bug2

The problem is with the player 2 : between the 2 rounds i give the actions to build a builder unit and a ranged unit. Only the builder unit is build (but my resources go from 32 to 9 and a builder unit only costs 10) Until this round both my AI did exactly the same things (same resource number...)

nnovich-OK commented 3 years ago

Builder costs (10 + number of already existing builders) which totals at 34 in your case. So 32 initial resource + income from round 188 - 34 spent = 9 left. I don't see any issues.

wala8963 commented 3 years ago

I didn't know about the number of already existing builders. thanks.