CodeQuest is a terminal-based puzzle game built entirely with JavaScript and TypeScript, designed to challenge your coding intuition and logic. Each level presents a code snippet with missing piecesโyour task is to solve the puzzle and progress through the quest. No browser, no UIโjust pure code and brainpower.
- ๐ง Interactive coding challenges in the terminal
- ๐งฉ Progressive levels with increasing difficulty
- ๐ก Real-time feedback and hints
- ๐จ Colorful output using Chalk
- ๐ ๏ธ Built with Node.js and TypeScript (no HTML/CSS)
| Technology | Purpose |
|---|---|
| Node.js | Runtime environment for CLI app |
| TypeScript | Type-safe development |
| Inquirer.js | Interactive terminal prompts |
| Chalk | Styled terminal output |
git clone https://github.com/your-username/codequest.git
cd codequest
npm install
โถ๏ธ Run the Game
bash
npm start
Or manually compile and run:
bash
npx tsc
node dist/index.js
---
๐ Project Structure
Code
codequest/
โโโ src/
โ โโโ index.ts # Entry point
โ โโโ engine.ts # Game logic
โ โโโ levels.ts # Puzzle definitions
โโโ package.json
โโโ tsconfig.json
๐ง Sample Puzzle
Code
Level 1:
Fill in the missing part: const result = [...___];
Your answer: array
โ
Correct!
๐ฃ Contribute
Want to add new levels or features? Fork the repo and submit a pull request.
Letโs make CodeQuest even more epic.
๐ License
This project is licensed under the MIT License.
๐ Author
Made with passion by Murad Leveling up one puzzle at a time.
---
If you want, I can also help you generate a cool ASCII logo for the top of the README
or add badges (like build status, version, etc.). Just say the word!