RaphaelRoyerRivard / MicroMachine

Starcraft 2 Bot
MIT License
15 stars 0 forks source link

Improve production #748

Open Unusual229 opened 4 years ago

Unusual229 commented 4 years ago

[12:55 PM] Unusual: Pense que notre production pourrait-être improved si on calculait notre income, le cost de chaque building par minute (équivalent au income), si notre income - dépense > 50, build a production building. 50 c'est un example, faudrait sa soit un income suffisant pour expand.

[1:22 PM] BlindMidget: Ouais ça semble mieux que le "score" qu'on avait avant Mais ça doit pas être évident calculer le cost d'un building par minute si il peut faire plus d'un type de unit

[1:23 PM] Unusual: en effet

Unusual229 commented 4 years ago

The score needs to be based on the units we might produce: Marine is 50 minerals in 18 seconds, so its a score of 166.6 (could be 2x if built twice with a reactor) Marauder is 125 minerals in 21 seconds, so its a score of 357.1 (gas should be a separate score) We probably want to include the cost of supply, which is 12.5 minerals per supply (1/8 of a supply depot). So it raises the Marine score to 179.1 and the Marauder score to 382.1. For the Barrack, the score should be based on the Barrack's addon, if no addon it should be the reaper score. For the Factory, the score should always be the Cyclone's score, expect vs zerg where it should be Hellion score? Should validate the Factory is actively used. For the Starport, it should also be based on the addon, but also consider if we have a Fusion Core.

We need to keep at least a 50 minerals buffer, so we can expand eventually. This score should only control when we build additional production buildings.