This repository contains multiple versions of the classic Memory game, each developed with different technologies and organized into separate branches.
Among the available versions, you will find a Progressive Web App (PWA) on default branch pwa
, one built with React Native, and another implemented using Flutter.
Check out the other branches to explore different versions of the game!
The PWA linked to this repository is only a partial PWA implementation because github pages does not support service workers. However, you can still open it in a Chromium-based browser and install it!
- Dynamic grid: The game features a 4x4 grid with 16 cards (8 pairs of emojis).
- Random shuffling: Cards are shuffled randomly at the start of each game, ensuring a unique experience every time.
- Game mechanics: Users can click on two cards to reveal them; if the cards match, they remain face up, otherwise they are flipped back after a short delay.
- Restart button: The game can be restarted at any time using the “Restart” button.
- Status notifications: The app notifies users of changes in network connectivity (online/offline).
- Responsive interface: The layout adapts to different screen sizes, making the game accessible on both desktop and mobile devices.
This application is designed to provide a simple, intuitive, and accessible gaming experience, challenging users’ memory skills in an engaging way.
This repository contains a Progressive Web App (PWA) implementation of the classic Memory Game, developed using HTML, CSS, and JavaScript.
!
-
Clone repo: Firstly you have to clone this repo and select or check if you are on the right branch:
git clone https://github.com/emanueletocci/memory-game cd memory-game git checkout pwa
-
Install dependencies: You must install all js dependencies using
. Navigate to the project directory (you should see a file named 'package.json') and run:
npm install
Now you should have a new folder named 'node_modules'.
-
Run webserver: Launch a local development server using http-server:
npx http-server
-
Install PWA (optional): Open a chromium based browser (like google chrome) and open your browser and go to the address shown in the terminal by the web server (usually
http://localhost:8000
). Now a small “Install” icon will appear in the address bar at the top right (usually represented by a monitor with a downward arrow or a plus sign). Click on this icon and then confirm by selecting “Install” to add the PWA to your system