Skip to content

Browser based puzzle game built using vanilla JavaScript, HTML, and CSS with a custom virtual keyboard.

License

Notifications You must be signed in to change notification settings

a6hijeet/js-d-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D-Code — Quote Decryption Puzzle Game

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.


How the Game Works

  • 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

Built With

  • HTML — structure
  • CSS — styling and layout
  • JavaScript (jQuery) — logic and interactions

Features

  • Random quote every time
  • New random mapping each game
  • On-screen keyboard
  • Physical keyboard support
  • Arrow-key navigation
  • Win / Lose states
  • Quote metadata reveal

Live Demo

Play Here (GitHub Pages - https://a6hijeet.github.io/js-d-code/)


Getting Started

  1. Clone this repo
    git clone git@github.com:a6hijeet/js-d-code.git
    cd js-d-code