Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

jprogram-js-projects/JMemory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

JMemory

English | Português


English

JMemory

JMemory is a memory game where players must find pairs of cards. The game includes a timer, curiosities about the images, and records the best time for players to beat.

Features

  • Flip cards to find matching pairs
  • Randomly changing curiosities about each image
  • Timer to track how long it takes to find all pairs
  • Stores and displays the best time achieved
  • Confetti animation when all pairs are found

How to Play

  1. Click on a card to flip it and reveal the image.
  2. Click on a second card to try and find the matching pair.
  3. If the cards match, they stay flipped. If they don't, they will flip back after a short delay.
  4. Try to find all pairs as quickly as possible to beat your best time.

Installation

  1. Clone the repository:
    git clone https://github.com/jprogram-js-projects/JMemory.git
  2. Open index.html in a web browser.

Development

  • The game uses localStorage to save curiosities and best times.
  • If running on a local server, the game fetches curiosities from a curiosities.json file.

Files

  • index.html: The main HTML file.
  • style.css: The CSS file for styling.
  • script.js: The JavaScript file containing game logic.
  • curiosities.json: JSON file containing curiosities about the images.

Português

JMemory

JMemory é um jogo da memória onde os jogadores devem encontrar pares de cartas. O jogo inclui um cronômetro, curiosidades sobre as imagens e registra o melhor tempo para os jogadores superarem.

Funcionalidades

  • Vire cartas para encontrar pares correspondentes
  • Curiosidades mudando aleatoriamente sobre cada imagem
  • Cronômetro para acompanhar o tempo necessário para encontrar todos os pares
  • Armazena e exibe o melhor tempo alcançado
  • Animação de confetes quando todos os pares são encontrados

Como Jogar

  1. Clique em uma carta para virá-la e revelar a imagem.
  2. Clique em uma segunda carta para tentar encontrar o par correspondente.
  3. Se as cartas corresponderem, elas permanecem viradas. Se não, elas voltarão ao estado original após um curto atraso.
  4. Tente encontrar todos os pares o mais rápido possível para bater seu melhor tempo.

Instalação

  1. Clone o repositório:
    git clone https://github.com/jprogram-js-projects/JMemory.git
  2. Abra index.html em um navegador web.

Desenvolvimento

  • O jogo usa localStorage para salvar curiosidades e melhores tempos.
  • Se estiver rodando em um servidor local, o jogo busca curiosidades de um arquivo curiosities.json.

Arquivos

  • index.html: O arquivo HTML principal.
  • style.css: O arquivo CSS para estilização.
  • script.js: O arquivo JavaScript contendo a lógica do jogo.
  • curiosities.json: Arquivo JSON contendo curiosidades sobre as imagens.

AltStyle によって変換されたページ (->オリジナル) /