-
Notifications
You must be signed in to change notification settings - Fork 16
Stockfish server
YSTEMandChess edited this page Oct 27, 2025
·
1 revision
This component is a NodeJS server that uses an npm Stock Fish library to get the optimal move for the computer. That is it! A fairly simple server with a bit more then 35 lines of code.
The YStemAndChess Component sends a POST to this server with the current FEN of the game. We pass the current FEN to the stock fish library which generates an optimal move. These results get sent back to the YStemAndChess Component.