Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sudo-play) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sudo-play đšī¸
Terminal-powered mini games for developers. Zero graphics. Maximum pain.
sudo-play is a plugin-based terminal arcade that runs entirely in your CLI. Each game is a self-contained module â challenging your developer instincts across regex, debugging, logic, and more. It's built to be fun, extensible, and dead simple to run.
Play Now
No installation required:
npx sudo-playOr install globally to play any time:
npm install -g sudo-play
sudo-playFor local development:
npm install
npm run devThe Idea
sudo-play was built for developers who live in the terminal. The concept is simple: a plugin-based arcade where each "game" is a TypeScript module that the engine discovers and loads automatically. You pick a game from the menu, play it, earn XP, and unlock more.
The architecture is intentionally minimal. The core engine knows nothing about individual games â it just defines a clean GameModule interface and a sandboxed GameContext that each game receives at runtime. This means anyone can add a new game by dropping a single directory into src/games/.
Games
| Game | Description |
|---|---|
| đ Bug Hunter | Spot the bug in a code snippet and pick the right fix. 30s per challenge. |
| đ Regex Arena | Write regular expressions to match patterns across 5 progressive levels. |
More games coming â contributions welcome.
How to Play
- Run
npx sudo-play(ornpm startif developing locally) - Select a game from the interactive menu
- Read the challenge, answer with your keyboard
- Earn XP for correct answers â lose points for mistakes
- Your progress is saved automatically between sessions
Documentation
| Doc | Description |
|---|---|
| Architecture | How the engine, router, state, and plugin system work |
| Adding a Game | Step-by-step guide to building your own game plugin |
| Contributing | How to contribute code, games, or bug reports |
| API Reference | Full GameModule and GameContext interface reference |
Tech Stack
- Node.js + TypeScript (ESM)
- @inquirer/prompts â interactive terminal prompts
- chalk â terminal colours
- tsx â dev-time TypeScript execution
License
ISC Š sheikhnz