add dump button

This commit is contained in:
Satria 2026-07-25 15:21:30 +07:00
commit fbadf1d436

View file

@ -25,4 +25,5 @@
fen: fen:
<input type="text" onkeypress={(e) => e.key === 'Enter' && board.loadFEN(fen)} bind:value={fen} /> <input type="text" onkeypress={(e) => e.key === 'Enter' && board.loadFEN(fen)} bind:value={fen} />
</label> </label>
<button onclick={() => console.log(board)}>dump game to console</button>
</div> </div>