D-Code is an interactive cryptogram-style puzzle game built using HTML, CSS, and JavaScript (with jQuery).
On each reload, the game selects a random quote from a CSV file.
Each letter A–Z is mapped to a unique number (1–26). Some letters are revealed at the start — the rest you must decode.
Your goal: reveal the full quote by guessing the correct letters.
If you make too many wrong guesses, you lose — solve it and you’ll see the full quote details such as the author and source.
- Loads a random quote from
data.csv - Generates a random mapping (letters → numbers 1–26)
- Shows a few letters as hints
- Guess using on-screen buttons or your keyboard
- Correct letters fill in all matching positions
- Too many wrong guesses => game over
- Win screen reveals:
- quote
- author
- book
- year
- HTML — structure
- CSS — styling and layout
- JavaScript (jQuery) — logic and interactions
- Random quote every time
- New random mapping each game
- On-screen keyboard
- Physical keyboard support
- Arrow-key navigation
- Win / Lose states
- Quote metadata reveal
Play Here (GitHub Pages - https://a6hijeet.github.io/js-d-code/)
- Clone this repo
git clone git@github.com:a6hijeet/js-d-code.git cd js-d-code