update menu + block placing visualization + add move history

This commit is contained in:
2026-02-25 12:43:32 +01:00
parent 3f8274f1d9
commit 82d618f692
5 changed files with 82 additions and 30 deletions

View File

@ -7,6 +7,7 @@
#include "puzzle.hpp"
#include <raymath.h>
#include <stack>
#include <unordered_map>
#include <unordered_set>
@ -20,6 +21,7 @@ public:
std::unordered_map<State, std::size_t> states;
std::unordered_set<State> winning_states;
std::unordered_set<State> visited_states;
std::stack<State> history;
// Other stuff maps from mass to state :/
std::unordered_map<std::size_t, State> masses;
@ -86,6 +88,10 @@ public:
auto GoToWorst() -> void;
auto GoToNearestTarget() -> void;
auto PopHistory() -> void;
auto CurrentMassIndex() const -> std::size_t;
};