HNHacker News
TopNewBestAskShowJobs

xomopinok

6 karma · joined May 12, 2022

submissionscomments
xomopinok··on 1D Pac-Man
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

[2]: https://github.com/creme332/pakupaku-ai/blob/main/assets/hig...

[3]: https://creme332.github.io/pakupaku-ai/?pakupaku

xomopinok··on 1D Pac-Man
A shorter way to change the direction of the player is to use player.vx *= -1;
xomopinok··on Finding it hard to get a new job? Robot recruiters might be to blame
AI algorithms used by recruiters are responsible for the automatic rejection of many qualified candidates.