<shogi-player>

A web component for shogi game.

Example: Update Event

lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1
<shogi-player id="player" mode="edit"></shogi-player>
<pre id="sfen">lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1</pre>
<script>
document.getElementById("player").addEventListener("update", (e) => {
document.getElementById("sfen").innerText = e.detail.sfen;
});
</script>