add button to move to a state farthest from any win condition

This commit is contained in:
2026-02-25 03:20:40 +01:00
parent 271902ab1f
commit 3f8274f1d9
6 changed files with 33 additions and 8 deletions

View File

@ -1,6 +1,5 @@
#include "input.hpp"
#include "config.hpp"
#include "distance.hpp"
#include <algorithm>
#include <raylib.h>
@ -154,6 +153,8 @@ auto InputHandler::HandleKeys() -> void {
mark_path = !mark_path;
} else if (IsKeyPressed(KEY_SPACE)) {
state.NextPath();
} else if (IsKeyPressed(KEY_V)) {
state.GoToWorst();
} else if (IsKeyPressed(KEY_F)) {
state.current_state.ToggleRestricted();
state.ClearGraph();