YourEx is a sci-fi themed interactive regex adventure for Visual Studio Code. Solve regex puzzles by crafting prompts for AI (or writing regex directly), unlock achievements, and explore a futuristic codex—all within your editor.
- Each level presents a sci-fi story scenario and a regex challenge.
- Write a prompt to instruct the AI to generate the correct regex — or type the regex directly.
- The regex is evaluated against test data; match the expected lines to pass.
- Progress through 6 chapters (26 levels) of increasing difficulty.
- Between chapters, enjoy animated story interludes that advance the narrative.
- Complete all levels to earn your Journey Certificate.
- VS Code installed
- GitHub Copilot account available in VS Code (optional — needed only if you use prompt mode instead of writing regex directly)
- Install "YourEx Game" from the VS Code Extension Marketplace.
- Click the "YourEx Game" icon in the left Activity Bar — the game starts.
- If you choose to write prompts instead of regex, the extension will request GitHub Copilot access.
- Interactive Regex Challenges: Progress through story-driven levels with unique regex puzzles.
- Hint System: Get contextual hints and a one-time decrypt-all feature to help you advance.
- Sci-Fi Codex Manual: Access a comprehensive, in-universe regex reference manual from the Manual button.
- Achievements & Leaderboard: Track your progress, earn rewards, and compare scores.
- User & Developer Modes: Switch between standard play and developer mode for testing.
- Internationalization (i18n): English and Chinese UI support.
- Build extension:
npm run build
- Run tests:
npm test - Build webview UI only:
npm run build:webview
- Watch mode:
npm run watch
src/— Extension backend (TypeScript)webview-ui/— React webview UI (Vite, TypeScript)prompt/— Design docs, plans, and feature specstest/— Unit testsresources/— Icons and static assets
- Developed by kokomaya
- Icon and sci-fi codex design by kokomaya



