Commit Graph

6 Commits

Author SHA1 Message Date
joren
22394aae50 Refactor(Sleutel ADT): Encapsulate key as message-passing ADT without graphics
Pure logic ADT with positie, opgepakt? predicate, pak-op! mutator.
Random placement logic uses doolhof ADT. No graphics code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 10:51:06 +01:00
joren
4d74e42fe1 Refactor(Pac-Man ADT): Encapsulate Pac-Man state as message-passing ADT
Pure logic ADT with grid-based positie, richting, beweeg! method.
All sprite/animation code removed - drawing responsibility in adt-teken.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 10:50:49 +01:00
joren
b342eeaeff Refactor(Doolhof ADT): Encapsulate maze as message-passing ADT without graphics
Pure logic ADT with grid data, cell predicates (muur?, muntje?, etc.),
mutators (cel-set!, verwijder-deur!), and voor-elke-cel iterator.
All graphics code removed - drawing responsibility moved to adt-teken.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 10:50:32 +01:00
joren
2ddbb1330c Refactor(Positie ADT): Add grid-based position ADT with message-passing dispatch
Constructor maak-positie returns dispatch closure with rij/kolom getters,
rij!/kolom! mutators, vergelijk? predicate, and beweeg method.
All coordinates are in grid units, not pixels.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 10:49:49 +01:00
joren
5870d63d9d Refactor(Constanten): Extract all magic numbers into centralized constants file
All hardcoded values (cell sizes, offsets, sprite scales, timing, score,
UI positions, cell type codes) are now named constants in an R7RS library.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 10:49:32 +01:00
joren
3abc9aae55 first commit 2026-03-23 10:28:54 +01:00