Skip to content

Releases: RSG-Group/RSG-Chess-API

v1.0.4

04 May 19:40
Compare
Choose a tag to compare

Some bugs fixed:

  • Wrong coordinates in the pawn promotion checks;
  • Bug in the CDN

v1.0.3

23 Apr 15:06
Compare
Choose a tag to compare

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

14 Apr 06:29
Compare
Choose a tag to compare
  • 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

08 Apr 07:37
Compare
Choose a tag to compare

Important bugfix in game.allMoves, that causes critical AI problem.

v1.0.0

03 Apr 05:51
Compare
Choose a tag to compare
  • Completed AI API
  • Added Graphics API
  • Support CDN for the basic APIs
  • Add usage guides in the READMEs

v0.0.2

23 Feb 18:13
Compare
Choose a tag to compare
Fix some stuff and publish v0.0.2

v0.0.1

23 Feb 17:42
Compare
Choose a tag to compare
v0.0.1