lichess.org
Donate

Chess Web Programming: Part Five: Game Review

Wonderful. I think a lot of people don't know how to get started. I've always wondered how to work with Stockfish myself since it is a CLI tool. This is all really helpful. (I'm a lead developer at a company, by the way, and was still intimidated by all of this!)
@thefrickouttaherelol said in #2:
> Wonderful. I think a lot of people don't know how to get started. I've always wondered how to work with Stockfish myself since it is a CLI tool. This is all really helpful. (I'm a lead developer at a company, by the way, and was still intimidated by all of this!)

I am glad you found this useful. The goal of this blog series was to make this accessible to anyone who wanted to try.
Thanks from my side too.

Here is a small typo: In the code, when you create the Stockfish instance you write `const stockfishWorker = ...`, but short after you refer to it as `stockfishInstance` in two locations.
@NHL_1024 said in #4:
> Thanks from my side too.
>
> Here is a small typo: In the code, when you create the Stockfish instance you write `const stockfishWorker = ...`, but short after you refer to it as `stockfishInstance` in two locations.

Your welcome,

Thanks for spotting that, it was a quick correction and a bad copy and paste job when adding the PUBLIC_ENV to the stockfish location.
import Chess from "chess.js";

Chess needs some curly brackets