AxelBjork / Rush-Royale-Bot

Python based bot for Rush Royale
MIT License
32 stars 21 forks source link

♻️ Try to keep only 2 Knight Statues (at least keep it even) #23

Closed Hona closed 2 years ago

Hona commented 2 years ago

Maybe 4 - or a config variable

AxelBjork commented 2 years ago

Added some knight statue logic to main now with this pull request,

Pull request: https://github.com/AxelBjork/Rush-Royale-Bot/pull/38

Preserving the two highest knight statues should be enough.

This function will also find the grid id of a knight statue adjacent to the highest dps unit,

https://github.com/AxelBjork/Rush-Royale-Bot/blob/main/Src/bot_perception.py#L84

Unsure where to integrate, basically that slot should just be ignored but none of the merge logic is using unit position atm so have to improve structure before adding position based logic.

Hona commented 2 years ago

Looks great, closing!