aaaaa
Some checks failed
Linux arm64 / Build (push) Failing after 31s

This commit is contained in:
2025-02-02 19:34:21 +01:00
parent 627c49b961
commit 9c72891048
5 changed files with 698 additions and 36 deletions

View File

@@ -25,6 +25,10 @@ public class StateManager {
this.doku = doku;
}
public void forgetState() {
states.pop();
}
public Map<Cell, Integer> pushState() {
states.add(saveState());
return states.getLast();
@@ -42,7 +46,7 @@ public class StateManager {
return currentState;
}
private void restoreState(Map<Cell, Integer> state) {
public void restoreState(Map<Cell, Integer> state) {
for (var entry : state.entrySet()) {
entry.getKey().setSymbolIndex(entry.getValue());
}