Closed EinarGissurar closed 6 years ago
GetBestPlanet only runs once so it's not exactly the best place to choose this, but if you want to try and find other planets before selecting a zone you can try that as well, but you would need a state to track them.
There's a tiny problem with the current build that's only an issue when you're focusing on leveling up.
Since the code focuses on selecting planets with the highest progress, you end up on worlds where all the high threat (and eventually the middle threat) tiles have been used up, while planets that still have those tiles available are still available.
I messed around with the GetBestPlanet function, so that it selected the planet with the lowest progress. Here's what I did: ` const GetBestPlanet = function GetBestPlanet() { let bestPlanet; let worstPlanet; let maxProgress = 0; let worstProgress = Number.MAX_VALUE;
} `
This works for me as the bot is now selecting the least progressed planet.
I'm wondering now if this should be added, where the bot priorities low progress planets, while player is still leveling up.