Chessistics/Scripts
Samuel Bouchet 97bca7d7df Add Undo (Ctrl+Z) backed by the WorldSave checkpoint mechanism
GameSim snapshots the state before each undoable command
(PlacePiece / RemovePiece / MovePiece) into a bounded LinkedList stack
(max 32). Undo() pops the last checkpoint and emits StateRestoredEvent,
reusing the presentation rebuild path already wired for QuickLoad.

Ctrl+Z in Main triggers the engine method; the harness exposes undo()
for tests. QuickLoad clears the stack (fresh timeline). Seven unit tests
cover empty stack, place/remove/move undo, reverse-order multiple undos,
rejected commands not checkpointing, and post-simulation rewind.
2026-04-17 22:14:06 +02:00
..
Automation Add Undo (Ctrl+Z) backed by the WorldSave checkpoint mechanism 2026-04-17 22:14:06 +02:00
Board Snapshot campaign system progress before automation harness 2026-04-16 21:22:49 +02:00
Input Add file-IPC automation harness for autonomous game testing 2026-04-16 22:34:56 +02:00
Pieces Phase 5: Dame (Queen) piece and network levels 7-8 2026-04-10 23:24:14 +02:00
Presentation Snapshot campaign system progress before automation harness 2026-04-16 21:22:49 +02:00
UI Add file-IPC automation harness for autonomous game testing 2026-04-16 22:34:56 +02:00
Main.cs Add Undo (Ctrl+Z) backed by the WorldSave checkpoint mechanism 2026-04-17 22:14:06 +02:00
Main.cs.uid Add technical files 2026-04-10 17:14:09 +02:00