---
name: build-a-five-lock-digital-escape-room-for-students
description: "A digital escape room for students in one HTML page: five different puzzle locks, a countdown timer, tiered hints and a teacher answer key, ready for a laptop or projector."
---

# Build a Five-Lock Digital Escape Room for Students

Source: https://prompts-gpt.com/prompts/build-a-five-lock-digital-escape-room-for-students

A digital escape room for students in one HTML page: five different puzzle locks, a countdown timer, tiered hints and a teacher answer key, ready for a laptop or projector.

## Prompt

```
Act as a front-end developer and classroom game designer. Build 'The Locked Observatory', a digital escape room for students aged 10-14. Start with a short story intro (the class is locked inside a scientist's hilltop observatory) and a Start button with a 10, 20 or 30 minute timer choice. Five locks appear as cards that open in order. Each uses a different mechanic with an original, factually correct science or logic puzzle: 1) a 3-digit code from three clues, set with +/- dial buttons; 2) a Caesar-shift cipher with a decoder wheel turned by buttons, answer typed; 3) an ordering lock for 5 steps using up/down buttons; 4) a matching lock pairing 4 terms with 4 definitions by clicking one then the other; 5) a final word whose letters come from the previous four answers.
Rules:
- Wrong answers shake the lock (skipped under prefers-reduced-motion) and show a short nudge. Right answers animate the padlock open.
- The countdown has a Pause button that hides the puzzle. Each lock offers 3 hints that get more direct, and each hint adds 1 minute to the final time.
- The finish screen shows escaped or out of time, total time, hints used and a Teacher answer key toggle.
- Every control works by keyboard with visible focus and clear labels. Never show status by colour alone.
- Use a calm light theme that respects prefers-color-scheme: dark, with system fonts. It must fit 360-1280px and read well on a projector. No forms, storage, alerts, external files or network requests.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.
```

## Usage Notes

Paste into Claude and open the result as an artifact: preview it there, then publish or share the artifact link with students. It also works in ChatGPT canvas or Gemini Canvas, or saved as an .html file and opened in any browser.
