GithubHelp home page GithubHelp logo

memory-game's Introduction

Memory Game

This is a memory game built using HTML, CSS, and JavaScript. The game consists of a grid of cards, each with a hidden image on one side. The player's objective is to find all the matching pairs of cards in the grid.

Getting Started

To get started, first ensure that you have Node.js and npm installed on your machine. Then, navigate to the root directory of the project in the command line and run the following command to install any necessary dependencies for the game:


npm install

The game uses Vite as its bundler. To run the game locally, use the following command:


npm run dev

This will launch the game in your default web browser and enable hot module replacement for faster development.

To create a production build of the game, use the following command:


npm run build

This will create a minified and optimized build of the game that can be deployed to a web server.

How to Play

To play the game, click on a card to reveal the hidden image. Then, click on another card to reveal its hidden image. If the two images match, the cards will remain face up. If they do not match, the cards will be flipped back over.

The game ends when all the matching pairs of cards have been found.

Customization

The game can be customized by editing main.js file. For example, you can change the images used on the cards, adjust the size of the grid, timelimit and etc.

License

This game is licensed under the MIT License. See the LICENSE file for details.

memory-game's People

Contributors

romanstrutynskyi avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.