reset selection when resetting state
This commit is contained in:
@ -310,6 +310,8 @@ auto InputHandler::ResetState() -> void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
state.ResetState();
|
state.ResetState();
|
||||||
|
sel_x = 0;
|
||||||
|
sel_y = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto InputHandler::FillGraph() -> void { state.FillGraph(); }
|
auto InputHandler::FillGraph() -> void { state.FillGraph(); }
|
||||||
|
|||||||
18
src/main.cpp
18
src/main.cpp
@ -16,7 +16,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO: Click states in the graph to display them in the board
|
// TODO: Click states in the graph to display them in the board
|
||||||
// TODO: Add some popups
|
|
||||||
|
// TODO: Add some popups (my split between input.cpp/gui.cpp makes this ugly)
|
||||||
// - Next move, goto target, goto worst: Notify that the graph needs to be
|
// - Next move, goto target, goto worst: Notify that the graph needs to be
|
||||||
// populated
|
// populated
|
||||||
// - Clear graph: Notify that this will clear the visited states and move
|
// - Clear graph: Notify that this will clear the visited states and move
|
||||||
@ -24,7 +25,20 @@
|
|||||||
// - Reset state: Notify that this will reset the move count
|
// - Reset state: Notify that this will reset the move count
|
||||||
// Remove the keybindings, as it's simpler to show the popups from the
|
// Remove the keybindings, as it's simpler to show the popups from the
|
||||||
// button?
|
// button?
|
||||||
// TODO: Set selection to 0, 0 when resetting the state
|
|
||||||
|
// TODO: Reduce memory usage
|
||||||
|
// - State.cpp stores a lot of duplicates, do I need all of them?
|
||||||
|
// - The memory model of the puzzle board is terrible (bitboards?)
|
||||||
|
|
||||||
|
// TODO: Improve solver
|
||||||
|
// - Move discovery is terrible
|
||||||
|
// - Instead of trying each direction for each block, determine the
|
||||||
|
// possible moves more efficiently (requires a different memory model)
|
||||||
|
// - Implement state discovery/enumeration
|
||||||
|
// - Find all possible initial board states (single one for each
|
||||||
|
// possible statespace). Currently wer're just finding all states
|
||||||
|
// given the initial state
|
||||||
|
// - Would allow to generate random puzzles with a certain move count
|
||||||
|
|
||||||
// NOTE: Tracy uses a huge amount of memory. For longer testing disable Tracy.
|
// NOTE: Tracy uses a huge amount of memory. For longer testing disable Tracy.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user