Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kurehajime/minesweeper_tag

Minesweeper for Web Components
https://github.com/kurehajime/minesweeper_tag

game minesweeper webcomponent webcomponents

Last synced: 30 days ago
JSON representation

Minesweeper for Web Components

Awesome Lists containing this project

README

        

# MineSweeper Tag

[![npm version](https://badge.fury.io/js/mine-sweeper-tag.svg)](https://badge.fury.io/js/mine-sweeper-tag)

Minesweeper for Web Components

[![MineSweeper](https://user-images.githubusercontent.com/4569916/210158769-7d3e975e-a5bb-46be-a581-10271682ead2.gif)](https://kurehajime.github.io/minesweeper_tag/)

Demo

https://kurehajime.github.io/minesweeper_tag/

## Installation

```
npm install mine-sweeper-tag
```

## Usage

### npm

Define custom element.

```
import { mine_sweeper } from 'mine-sweeper-tag'
customElements.define('mine-sweeper', mine_sweeper)
```

Insert tag.

```

```

### CDN

insert your HTML.

```

import { mine_sweeper } from 'https://unpkg.com/mine-sweeper-tag@latest/dist/mine-sweeper.es.js';
customElements.define('mine-sweeper', mine_sweeper)

```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## History

https://github.com/kurehajime/minesweeper/commits/main

## Credits

@kurehajime

## License

MIT