10 ms·
This doesn't seem to actually play chess.
by jiggy2011 13y ago
This doesn't seem to actually play chess.
- omra 13y agoI don't think it's meant to play chess, it's just to show chess positions (see the example page: http://chessboardjs.com/examples http://chessboardjs.com/examples). It is in a similar vein to this: http://andrewphoy.github.io/chess-replayer/ http://andrewphoy.github.io/chess-replayer/. (Which is more full-featured.)
- twistedpair 13y agoNot much to see here. Why is this JS? Usually JS requires some interaction. Even lightbox flew around and did something. This would be even easier as a chessboard PNG rendering REST service.
- Nilzor 13y agoBecause PNG-rendering REST services wouldn't make it to the front page of HN
- chrisoakman 13y agoChessBoard supports drag-and-drop pieces: http://chessboardjs.com/examples#2006 http://chessboardjs.com/examples#2006
- nilliams 13y agoDrag and drop pieces and the pieces can take each other, so you could use this to animate/play-back a full game, or as the basis for a chess game.
- twistedpair 13y agoTouche, tried dragging all the pieces I saw on the demos. Perhaps it's too late on a Friday for them to move.
- chrisoakman 13y agoChessBoard is designed to be "just a board" and integrate easily with chess engines, etc. https://github.com/oakmac/chessboardjs/blob/master/README.md https://github.com/oakmac/chessboardjs/blob/master/README.md I have an issue to build an example that demonstrates integration with chess.js and only allows legal moves (https://github.com/oakmac/chessboardjs/issues/19 https://github.com/oakmac/chessboardjs/issues/19)