You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <script src="chess.js"></script> in your html file.
I tried the obvious -- compile chess.ts using tsc, and then put
<script src="chess.js"></script> 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.
The text was updated successfully, but these errors were encountered:
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 <script src="chess.js"></script> in your html file.
I tried the obvious -- compile chess.ts using tsc, and then put
<script src="chess.js"></script> in *my* html file. But that doesn't work. There must bemore 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.
The text was updated successfully, but these errors were encountered: