How mattpocock/rubix-cube works
Purpose and delivery model
This repository is a self-contained Rubik’s Cube learning curriculum: sequential browser-readable lessons, supporting reference material, learner progress records, and small verification/rendering utilities. It is primarily a static-content repository rather than an application server.
• MISSION.md
• lessons/0001-anatomy-notation-white-cross.html
• reference/solve-card.html
Curriculum entry points and progression
The ordered HTML lessons are the main learner entry points. The sequence begins with cube anatomy, notation, and the white cross; progresses through beginner-layer and last-layer techniques; then moves into F2L concepts and case handling.
• lessons/0001-anatomy-notation-white-cross.html
• lessons/0007-orient-the-corners.html
• lessons/0019-what-f2l-actually-is.html
The lesson numbering is the principal control flow: consumers should preserve numeric order when presenting or planning the curriculum.
Learning-state record
learning-records/ captures milestone-based learner outcomes corresponding to the instructional path. These records form the evidence/history layer rather than executable state, documenting capability acquisition and later curriculum extensions.
• learning-records/0001-can-build-white-cross.md
• learning-records/0007-first-full-solve.md
• learning-records/0018-f2l-reset-from-first-principles.md
A planner can use these records to identify completed stages and select the next lesson or remediation topic.
Instructional stages
The architecture is organized around three teaching phases:
1. Foundation and beginner solve: notation, white cross/corners, second layer, and basic last layer.
2. Last-layer recognition and algorithms: corner cycles, case reading, Sune, PLL, and memory hooks.
3. F2L transition: insertions, pair-first thinking, pair construction, edge extraction, and wrong-slot recovery.
• lessons/0003-second-layer.html
• lessons/0010-read-the-case.html
• lessons/0016-build-the-pair.html
Interactive and visual assets
Browser-side visual support is concentrated in the assets directory. cube-render.js is the JavaScript rendering component, while shared lesson presentation is supplied by CSS. Lesson HTML is the boundary that consumes these static assets.
• assets/cube-render.js
• assets/lesson.css
• assets/README.md
The material runtime is therefore a web browser capable of loading static HTML, CSS, and JavaScript; no backend or external service is represented in the tree.
Cube-model and verification utilities
Python utilities provide an offline computational boundary for cube representation and F2L checking. They are separate from the static lesson delivery path and likely support authoring or validating instructional cases.
• assets/cube.py
• assets/f2l_verify.py
• assets/cube-render.js
Reference and supporting content
Reference pages provide reusable lookup material independent of lesson progression, while top-level mission, notes, and resources files hold curriculum intent and supporting context.
• reference/glossary.html
• reference/solve-card.html
• RESOURCES.md
Main entry points: 0001-anatomy-notation-white-cross.html Foundation lessons · 0016-build-the-pair.html F2L transition · 0007-orient-the-corners.html Last-layer techniques · solve-card.html Reference pages
Components 18
Sequential Curriculum
Numbered lessons define learner progression.
- Foundation lessons · Notation through beginner solve foundations.
lessons/0001-anatomy-notation-white-cross.html - Second-layer lesson
lessons/0003-second-layer.html - Last-layer techniques · Recognition and algorithm practice.
lessons/0007-orient-the-corners.html - Case reading
lessons/0010-read-the-case.html - F2L transition · Pair-first F2L concepts and recovery.
lessons/0016-build-the-pair.html - F2L concepts
lessons/0019-what-f2l-actually-is.html
Learning Evidence
- Milestone records · Evidence used to select next or remediation work.
learning-records/0001-can-build-white-cross.md - First-solve record
learning-records/0007-first-full-solve.md - F2L reset record
learning-records/0018-f2l-reset-from-first-principles.md
Static Delivery
- Web browser · Loads the self-contained static curriculum.
- Lesson styles
assets/lesson.css - Cube renderer · Visual cube support for lesson pages.
assets/cube-render.js - Reference pages · Reusable material outside lesson order.
reference/solve-card.html - Glossary
reference/glossary.html
Authoring Utilities
Offline cube-model and F2L verification tools.
- Cube model · Offline cube representation for authoring checks.
assets/cube.py - F2L verifier · Validates instructional F2L cases offline.
assets/f2l_verify.py
Other components
- Curriculum mission
MISSION.md - Supporting resources
RESOURCES.md
Connections 21
- Curriculum mission → Foundation lessons: guides
- Foundation lessons → Second-layer lesson: numeric sequence
- Second-layer lesson → Last-layer techniques: numeric sequence
- Last-layer techniques → Case reading: continues
- Case reading → F2L transition: transitions to
- F2L transition → F2L concepts: continues
- Foundation lessons → Milestone records: records progress
- Last-layer techniques → First-solve record: records milestone
- F2L transition → F2L reset record: records extension
- Milestone records → Foundation lessons: informs next lesson
- Web browser → Foundation lessons: renders
- Web browser → Last-layer techniques: renders
- Web browser → F2L transition: renders
- Lesson styles → Foundation lessons: styles
- Cube renderer → Foundation lessons: visualizes cube
- Cube renderer → F2L transition: visualizes cube
- Web browser → Reference pages: renders
- Reference pages → Glossary: complements
- Cube model → F2L verifier: supplies cube representation
- F2L verifier → F2L transition: validates cases for
- Supporting resources → Reference pages: supports