Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.3 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.3 KB

Country Capitals Game

This is a simple game where players need to match countries with their capitals by clicking on the appropriate buttons.

Game Rules

  1. The game presents a list of countries and their corresponding capitals.
  2. The buttons representing the countries and capitals are displayed in a random order.
  3. Clicking on a button changes its background color to blue.
  4. If a correct country and capital pair is selected, both buttons are removed.
  5. If an incorrect pair is selected, the buttons turn red temporarily.
  6. 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.
  7. When all the buttons have been matched correctly and removed, a "Congratulations!" message is displayed.

Technologies Used

  • React

Installation

  1. Clone the repository: git clone https://github.com/laryhills/country-match-game.git
  2. Navigate to the project directory: cd country-match-game
  3. Install dependencies: npm install
  4. Start the application: npm start
  5. Open your browser and visit: http://localhost:3000

Usage

  • 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.