number-memory-game-component
Version:
A simple number memory game implemented as a web component.
48 lines (35 loc) • 846 B
Markdown
# Number Memory Game Web Component
A simple web component that implements a number memory game.
## Installation
```bash
npm install number-memory-game-component # Or whatever you named your package
```
## Usage
1. **Import the component:**
```javascript
// In your JavaScript file
import "number-memory-game-component/number-memory-game.js";
```
2. **Use the custom element in your HTML:**
```html
<number-memory-game></number-memory-game>
```
## Example
```html
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Number Memory Game Demo</title>
<script
type="module"
src="./node_modules/number-memory-game-component/number-memory-game.js"
></script>
</head>
<body>
<number-memory-game></number-memory-game>
</body>
</html>
```
## License
MIT