2 ms·
You inspired me to spend the last two days to build my own bot[1]. The highest score[2] it reached is 300k but it is cannot consistently reach this score (the a
by xomopinok 3y ago
You inspired me to spend the last two days to build my own bot[1]. The highest score[2] it reached is 300k but it is cannot consistently reach this score (the average score is around 50k). The algorithm is to reverse the player direction only if one of the following conditions is satisfied:
1) enemy is running away from player && power is about to expire && player is close to enemy.
2) player is getting too close to enemy's respawn point && player is too far from wall opposite to him && player has little or no power.
3) enemy is close to player (<20 units away) && the player and the enemy are facing each other.
A live preview of the algorithm in action is deployed on github[3].
[1]: https://github.com/creme332/pakupaku-ai https://github.com/creme332/pakupaku-ai
[2]: https://github.com/creme332/pakupaku-ai/blob/main/assets/high_score.gif https://github.com/creme332/pakupaku-ai/blob/main/assets/hig...
[3]: https://creme332.github.io/pakupaku-ai/?pakupaku https://creme332.github.io/pakupaku-ai/?pakupaku