renzorlive/vimmaster
Tentang
VIM Master: game di browser yang mengajarkan gerakan inti Vim dan perintah pengeditan melalui level singkat dan terfokus.
Pembelajaran dan pendidikanYang dapat Anda lakukan
- 🎮 Interactive Learning: Learn Vim commands directly in a simulated editor environment.
- 📚 JSON-Driven Engine: Every lesson is a self-contained JSON file, making it incredibly easy to add new content.
- 🚀 Practice Arena: Test your speed and accuracy in time-limited challenges.
- 📘 Cheat Mode: An easily accessible command reference to help you remember commands.
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +3
- dalam 1 bulan
- +6
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliVIM Master
Learn Vim by playing. VIM Master is an interactive, browser-based game designed to teach Vim commands through short, focused lessons, progressive difficulty, and gamification.
✨ Features
- 🎮 Interactive Learning: Learn Vim commands directly in a simulated editor environment.
- 🏆 Gamification: Earn XP, build Combos, and unlock achievements and badges as you progress.
- 📚 JSON-Driven Engine: Every lesson is a self-contained JSON file, making it incredibly easy to add new content.
- 🚀 Practice Arena: Test your speed and accuracy in time-limited challenges.
- 📘 Cheat Mode: An easily accessible command reference to help you remember commands.
- 💾 Local Saves: Your progress, badges, and XP are automatically saved locally and can be imported/exported.
🚀 Quick Start
To run the game locally:
git clone https://github.com/renzorlive/vimmaster.git
cd vimmaster
npm install
npm run check
npm start
The game will be served locally via Vite (usually on http://localhost:5173/).
🏗️ Architecture
Starting with V3, VIM Master uses a Content Platform Architecture:
- Engine as API: The game engine purely consumes content. It does not hardcode lessons.
- One JSON = One Lesson: All content lives in
content/lessons/*.json. - Content Provider: During build time (
npm run build:content), JSON lessons are compiled into a single optimized source of truth (content/index.json) that the engine reads.
Project Structure
content/ # JSON lessons and schema definitions
docs/ # Community guides, architecture, and principles
js/ # Game engine, progress system, and UI components
tests/ # Contract, Golden, and Regression test suites
🛡️ Testing & Validation
VIM Master takes stability seriously. We employ a robust 4-pillar testing strategy:
- Contract Suite (
npm run test:contract): Validates all JSON lessons against strict schemas. It ensures no missing fields, valid metadata, and valid keys. - Golden Suite (
npm run test:golden): E2E validation. It runs the exact keypresses from a lesson'ssolutionarray through the actual game engine and validates that the final editor state matches the expectedtargetContent. - Regression Suite: Protects against previously resolved bugs (e.g. Save Corruption
TD-0001) re-emerging. - Unit Suite: Verifies internal state logic and helper functions.
Run all tests at once using:
npm run check
🤝 Contributing
Community First! Our architecture is designed specifically so that anyone can contribute new lessons without needing to touch or understand the game engine code.
Want to add a new lesson for a Vim command? Just copy an existing JSON file, edit the text, and open a PR! 👉 Read our full guide: Contributing a Lesson
🗺️ Roadmap
- ✅ V2 Architecture Freeze: JSON-driven content migration complete.
- ✅ Community Alpha: Testing suites, documentation, and gamification (XP/Combo) integrated.
- 🚧 V3 UX Polish: First-Time User Experience (FTUE), minimalist UI, and reduced cognitive load.
- 🔜 Public Beta: Launch and community lesson gathering.
📄 License
MIT License
Jelajahi proyek terkait
Memuat…
