Pretty cool example!
Thank you @neil, we’re soon going to be adding an area to have community contributions to pyscript and we’d love to have your example there.
I’ve enhanced it a little further recently, so you can interact with the board (adds an event listener on the SVG to figure out which piece you clicked). I’ll post that version soon.
When things are ready. let me know what I need to do to submit it
The attack feature is nice because it demonstrates interacting with SVG: it figures out which piece was clicked and redraws the board with the attack detail added