Skip to content

Instantly share code, notes, and snippets.

@udit-raj-simform
Created February 17, 2023 08:00
Show Gist options
  • Save udit-raj-simform/20bfbc5468177af15a73fb8f1577c754 to your computer and use it in GitHub Desktop.
Save udit-raj-simform/20bfbc5468177af15a73fb8f1577c754 to your computer and use it in GitHub Desktop.
js memory game
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🧠 Memory Game in JavaScript</title>
<link rel="stylesheet" href="assets/styles.css" />
<script src="assets/game.js" defer></script>
</head>
<body>
<div class="game">
<div class="controls">
<button>Start</button>
<div class="stats">
<div class="moves">0 moves</div>
<div class="timer">time: 0 sec</div>
</div>
</div>
<div class="board-container">
<div class="board" data-dimension="4"></div>
<div class="win">You won!</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment