AI now follows the A* algorithm more closely by using a separate priority queue from the open_set.

This commit is contained in:
Zed A. Shaw 2025-03-30 12:37:34 -04:00
parent 72951f308f
commit 922fbeba0e
9 changed files with 72 additions and 75 deletions

View file

@ -11,7 +11,7 @@ namespace ai {
// ZED: I don't know if this is the best place for this
using AIProfile = std::unordered_map<std::string, int>;
constexpr const int SCORE_MAX = std::numeric_limits<int>::max();
constexpr const int SCORE_MAX = std::numeric_limits<int>::max() / 2;
constexpr const size_t STATE_MAX = 32;