Closed ezz3r closed 5 months ago
"board.setPosition(chessboardState, true);"
So basically i am getting the chess fen from the database and it updates it visually. But not in the "chess engine". Is there a setPosition function for const chess?
"const chess = new Chess()"
I tried chess.setPosition() but that doesnt work :?
Ok i just found through testing. Solution: chess.load(fen)
It has mostly the same API as chess.js because it is based on chess.js
"board.setPosition(chessboardState, true);"
So basically i am getting the chess fen from the database and it updates it visually. But not in the "chess engine". Is there a setPosition function for const chess?
"const chess = new Chess()"