oakmac / chessboardjs

JavaScript chessboard
https://chessboardjs.com
MIT License
2k stars 406 forks source link

lacuna in documentation #246

Open strnbrg59 opened 9 months ago

strnbrg59 commented 9 months ago

In your examples that use the chessjs library (for example the example that validates moves for legality), you don't say how exactly you do that. I see you using chessjs functions (like the Chess class). But where do you load chess.js (or perhaps chess.ts)? I don't see anything like in your html file.

I tried the obvious -- compile chess.ts using tsc, and then put

in *my* html file. But that doesn't work. There must be more to it and I wonder if you'd be willing to provide a bit more handholding to benefit people who aren't keen (right now at least) to learn about typescript and nodejs and all that.