Skip to content

HossinAmin/Magic-Cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic Cards

Welcome to the Magic Card React application repository! This project is a card-matching game inspired by the Net Ninja's React.js and Firebase course. You can use this repository to explore the source code, contribute, or run the game on your local machine.

image

Table of Contents

Getting Started

To get started with the Magic Card game, follow the instructions below.

Prerequisites

Before you begin, make sure you have the following software installed on your machine:

  • Node.js: You can download it from https://nodejs.org/.
  • npm (Node Package Manager): It comes bundled with Node.js.

Installation

  1. Clone this repository to your local machine using Git:

    git clone https://github.com/your-username/magic-card.git
  2. Navigate to the project directory:

    cd magic-card
  3. Install project dependencies:

    npm install

Running the Application

Now that you have installed the project dependencies, you can run the Magic Card game locally.

  1. Start the development server:

    npm start
  2. The application will start, and your default web browser should open to http://localhost:3000. If it doesn't, you can manually open your browser and navigate to this address.

  3. Enjoy playing the Magic Card game!

Folder Structure

The project is organized into several directories, each serving a specific purpose:

  • public: Contains the static assets and the HTML template for the application.
  • src: Contains the React application's source code.
    • components: React components used in the game.
    • App.js: The main React component.
    • Other configuration and setup files.

Game Rules

The Magic Card game is a card-matching game where you need to find pairs of matching cards. Here are the basic rules:

  1. Click on a card to reveal its symbol.
  2. Click on another card to reveal its symbol.
  3. If the two cards have the same symbol, they stay face-up.
  4. If the two cards do not match, they are flipped back face-down.
  5. Your goal is to find all the matching pairs as quickly as possible.

License

This project is licensed under the MIT License. For details, see the LICENSE file in this repository.

Thank you for checking out the Magic Card game! We hope you have fun playing and contributing to the project. If you have any questions or issues, feel free to open an issue in this repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published