Chessistics/Scripts/Automation
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
..
AutomationFacade.cs Add Undo (Ctrl+Z) backed by the WorldSave checkpoint mechanism 2026-04-17 22:14:06 +02:00
AutomationHarness.cs Add file-IPC automation harness for autonomous game testing 2026-04-16 22:34:56 +02:00
CommandDispatcher.cs Add Undo (Ctrl+Z) backed by the WorldSave checkpoint mechanism 2026-04-17 22:14:06 +02:00
IpcFiles.cs Add file-IPC automation harness for autonomous game testing 2026-04-16 22:34:56 +02:00
SnapshotSerializer.cs Add file-IPC automation harness for autonomous game testing 2026-04-16 22:34:56 +02:00