Inspiration
I am a BCA first-year student. When I revise C on my phone, I get distracted. Paper cards cannot tell me my score. So I made ReviseLens — the cards sit on my desk in AR, next to my notebook, where my eyes already are. My hands stay free to write notes.
What it does
ReviseLens is a Lens for SPECS that puts 5 C programming flashcards on your real study desk. You guess the answer, pinch a card to flip it, then tap "Got it" or "Missed it". At the end you see your score out of 5 and can retry only the cards you missed.
The 5 cards are:
- printf("%d", 7 / 2); — Answer: 3 — integer division, no decimal part.
- printf("%d", 7 % 2); — Answer: 1 — % gives the remainder.
- int a = 5; a += 2; printf("%d", a); — Answer: 7
- char ch = 'B'; printf("%d", ch); — Answer: 66 — 'B' is ASCII 66.
- int x = 3; printf("%d", x++); printf("%d", x); — Answer: 3 then 4 — x++ prints the old value first, then x becomes 4.
All answers were checked by running the C code with gcc. The Execution Trace & Variable State Box beside each flipped card shows the code running step by step.
How we built it
Planned with the Devpost Learn skill pack plan-lens. The plan is in devpost/design-brief.md. Built in Lens Studio from the SPECS Base Template. Built by an AI coding agent through CLAD, using the Lens Studio MCP. Used Spectacles Interaction Kit (SIK) and UI Kit for pinch, buttons, and cards, so it works with a mouse click as a pinch in Interactive Preview. Used real-world size in centimetres. Cards sit on the desk, a little below eye level. LEAF tests were written for each done criterion in the design brief. All 8 LEAF scenarios passed. New project, started during the submission period. Old code was not used.
Challenges we ran into
Lens Studio 5.24.1 blocked the SPECS developer sign-in in India — card verification is not available in my country. I downgraded to Lens Studio 5.23.2 and the sign-in worked. My laptop switched off during the Memory Box build and the unsaved scene was lost, so I rebuilt the full Lens from the final brief. A preview package broke the TypeScript compilation, so I removed it and all tests passed after that.
Accomplishments that we're proud of
The full flow works in the preview: Start, guess, flip, Got it / Missed it, result, and Retry missed only. All 8 LEAF scenarios passed. The first-attempt score is kept separate from the retry score, and double-tapping Got it never adds the point twice.
What we learned
Good AR does not mean a floating website. It means putting things where they belong — cards on the desk, at real size, where your eyes already are. One small flow, done fully, is better than many half-done features. Testing in the preview catches real problems — the sign-in block and the lost scene both showed up only when I ran it. Tested in Lens Studio preview only. No physical SPECS glasses were used.
What's next for ReviseLens
Next, I want to add more C topics — loops, arrays, and pointers — and make the Memory Box traces clearer in the preview. After the hackathon, I will keep ReviseLens open-source so other BCA students can add their own cards.
Built With
- clad
- leaf
- lens-studio
- spectacles-interaction-kit
- typescript
- ui-kit