<shogi-player>

A web component for shogi game.

Install

<shogi-player> is distributed on npm, so you can install it locally or use it via npm CDNs like unpkg.com.

Local Installation

npm i shogi-player-webcomponents

CDN

npm CDNs like unpkg.com can directly serve files that have been published to npm. This works great for standard JavaScript modules that the browser can load natively.

For this element to work from unpkg.com specifically, you need to include the ?module query parameter, which tells unpkg.com to rewrite "bare" module specifiers to full URLs.

HTML

<script type="module" src="https://unpkg.com/shogi-player-webcomponents?module"></script>

JavaScript

import {ShogiPlayer} from 'https://unpkg.com/shogi-player-webcomponents?module';