feat: add Turing Complete-style puzzle system

Add progressive puzzle mode alongside the existing sandbox:
- 8 levels from basic gates to 2-bit adder
- Truth table verification with pass/fail feedback
- Gate restrictions per level
- Custom components system (save circuits as reusable chips)
- Save/load circuits as JSON
- Level selection sidebar with difficulty ratings
- Mode toggle: Sandbox (free play) vs Puzzle (guided levels)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jose Luis
2026-03-20 02:06:57 +01:00
parent 0f4fe27396
commit b2e367817c
10 changed files with 1733 additions and 249 deletions

View File

@@ -33,5 +33,8 @@ export const state = {
// Simulation
simRunning: false,
simInterval: null,
simSpeed: 500 // ms per tick
simSpeed: 500, // ms per tick
// Puzzle/Components
customComponents: {} // { id -> component definition }
};