Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lacuna in documentation #246

Open
strnbrg59 opened this issue Nov 21, 2023 · 0 comments
Open

lacuna in documentation #246

strnbrg59 opened this issue Nov 21, 2023 · 0 comments

Comments

@strnbrg59
Copy link

strnbrg59 commented Nov 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant