Memory Game
A responsive and accessible Memory (Concentration) card game built with HTML, CSS, and JavaScript.
Features
- 4x4 and 6x6 grid options
- Smooth card flip animations
- Timer and moves counter
- Star rating system
- Local storage for best scores
- Keyboard controls for accessibility
- Responsive design for all devices
- No external dependencies
How to Play
- Open
memory-game.html in a web browser
- Click or use keyboard (Tab + Enter/Space) to flip cards
- Find matching pairs to win
- Try to complete the game with as few moves as possible
- Switch between 4x4 and 6x6 grids using the buttons
Technical Details
- Pure HTML, CSS, and JavaScript implementation
- No external libraries or dependencies
- Fully responsive design using CSS Grid
- Accessible with ARIA attributes and keyboard controls
- Local storage for persistent high scores
Development
- Clone the repository
- Open
memory-game.html in a web browser
- Or serve using a local HTTP server:
python3 -m http.server 8000
- Visit
http://localhost:8000/memory-game.html
Hangman
The repository also includes a standalone Hangman game in hangman.html.
- Open
hangman.html directly in a browser, or use the local server above.
- Guess letters with the on-screen keyboard or your physical keyboard.
- Solve the word before making six incorrect guesses.
- Select New Word to start another round. Use the appearance toggle to switch between light and dark themes.
The word list and game code are contained in the HTML file; no internet connection or external dependencies are needed.