nkzw-tech / athena-crisis

Athena Crisis is a modern-retro turn-based tactical strategy game. Athena Crisis is open core technology.
https://athenacrisis.com/open-source
Other
1.54k stars 116 forks source link

[AI] Improve AI performance by 5-10x #15

Open cpojer opened 4 months ago

cpojer commented 4 months ago

The Athena Crisis AI works by executing all actions for a turn and returning them to the user. It's critical for the AI to be fast. The goal of this task is to speed up the AI by 5-10x while maintaining its difficulty level. Ideally it has the same or stronger behavior, while being faster. All tests in this repo need to pass with the improved AI, however if a snapshot test changes while retaining behavior, that is acceptable.

AI Info

The current AI is called DionysusAlpha and its code can be found there. There are also many AI specific helpers in dionysus/lib. Check out the AI Playground.

Notes

Funding

Fund with Polar

mohamedsalem331 commented 4 months ago

@cpojer is the dionysus directory contains all logic needed to understand current ai, iam new to the repo. and hoping i can contribute.

cpojer commented 4 months ago

Yes! Check out the AI and prior sections in the docs: https://athenacrisis.com/open-source/core-concepts/ai