Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AI_baseBonusVal cache. #12

Open
karadoc opened this issue Oct 15, 2014 · 0 comments
Open

Fix AI_baseBonusVal cache. #12

karadoc opened this issue Oct 15, 2014 · 0 comments

Comments

@karadoc
Copy link
Owner

karadoc commented Oct 15, 2014

The current cache system for AI_baseBonusVal is susceptible to OOS bugs. Adding more state-dependant components to the evaluation could result in OOS bugs. Even the current system, could potentially cause (very rare) OOS bugs.

The cache should be made reliable, so that the value of bonuses can depend on any part of the game state without causing OOS problems. One way to do this would be calculate the value of all bonuses for all players at the start of each turn, and only update in special situations such as after a trade deal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant