A memory card game where players match cities to their respective countries. This game is not only fun but also educational, helping players familiarize themselves with various cities and their countries.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- A modern web browser (e.g., Chrome, Firefox, Safari).
- A code editor (e.g., VSCode, Atom).
- Basic knowledge of HTML, CSS, and JavaScript.
- Clone the repository to your local machine:
- Navigate to the project directory: cd city-country-match-game
- Open the
index.html
file in your preferred browser to start the game.
- Click on the "Yes" button on the welcome modal to start the game.
- Flip over two cards at a time, trying to match the city with its country.
- The game is completed when all pairs are matched.
- Upon completion, a modal will prompt you to enter your name and email to receive information about discounted offers.
- After submitting the form, a "Thank You" modal will appear. You can then choose to restart the game.
The game is integrated with a Cloudflare Worker to send user data upon game completion. To set up your own Cloudflare Worker:
- Visit Cloudflare Workers' official website and set up a new worker.
- Replace the worker URL in the
script.js
file with your worker's URL. - Ensure your worker is set up to handle POST requests and save the data as required.
We welcome contributions! Please read our CONTRIBUTING.md for details on how to submit pull requests to us.
This project is licensed under the MIT License. See the LICENSE.md file for details.