006fix / Game_Coding_Challenge

0 stars 0 forks source link

Lack of intelligent directed wait time #4

Open 006fix opened 2 years ago

006fix commented 2 years ago

"AI" currently just waits 20k seconds if there are no actions it can perform. This is inefficient - instead, directed waiting needs to be implemented, that utilises yield to calculate accurate wait time, then set time for that period. As an alternative, this could be replaced with a trigger that provides a copy of a value of the stored resources - if stored >= trigger, AI wakes up. BUT, this would require frequent recalculation of resources - likely better to use directed waiting.

This probably needs to be implemented AFTER an AI that can effectively make decisions about what to choose to upgrade next