Releases: RSG-Group/RSG-Chess-API
Releases · RSG-Group/RSG-Chess-API
v1.0.4
v1.0.3
The AI generation and movements are removed from game.moveSelected
- #4
Before you needed to do the following:
game.moveSelected(selected, to, promotionCallback, checkmateCallback, {depth: NUMBER}, simulate);
Now you need to do the following operations:
var bestMove = ChessAI(playAgainstAI.depth, game, isMaximizing);
var selected = game.board[bestMove.from.y][bestMove.from.x];
game.moveSelected(selected, bestMove.to, promotionCallback, checkmateCallback, simulate);
Note that the CDNs are not currently updated.UPDATE: The CDNs are now updated
https://storage.googleapis.com/rsg-chess-api/cdn/index.min.js
v1.0.2
- Support passing game object without methods to the AI.
This is helpful when you try to send data from your frontend to a backend or a worker and call the AI inside. That on its side is helpful because bigger AI depths can freeze the DOM if it isn't called in a worker or in your backend.
Take a look here: RSG-Group/Chess#8 (comment)
v1.0.1
v1.0.0
- Completed AI API
- Added Graphics API
- Support CDN for the basic APIs
- Add usage guides in the READMEs