This is a simple game where players need to match countries with their capitals by clicking on the appropriate buttons.
- The game presents a list of countries and their corresponding capitals.
- The buttons representing the countries and capitals are displayed in a random order.
- Clicking on a button changes its background color to blue.
- If a correct country and capital pair is selected, both buttons are removed.
- If an incorrect pair is selected, the buttons turn red temporarily.
- After an incorrect pair is selected, clicking another button restores the default background color for the incorrect pair and sets the clicked button to blue.
- When all the buttons have been matched correctly and removed, a "Congratulations!" message is displayed.
- React
- Clone the repository:
git clone https://github.com/laryhills/country-match-game.git
- Navigate to the project directory:
cd country-match-game
- Install dependencies:
npm install
- Start the application:
npm start
- Open your browser and visit:
http://localhost:3000
- The game will be displayed in your browser.
- Click on the buttons to match countries with their capitals.
- Continue playing until all the buttons have been matched correctly.