Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for 960 chess (Fischer random chess) #15

Closed
dawidziolkowski opened this issue Jun 21, 2014 · 7 comments
Closed

Support for 960 chess (Fischer random chess) #15

dawidziolkowski opened this issue Jun 21, 2014 · 7 comments

Comments

@dawidziolkowski
Copy link

Hi, i propose including the ability to set the starting positions of 960's chess in FEN (some options are described in Wiki http://en.wikipedia.org/wiki/Forsyth-Edwards_Notation#FEN_adjustment_for_chess_variants_like_Chess960) so it would be possible to show 960 games. Ew. pgn4web supports as well X-FEN as Schredder-FEN, maybe it would be useful: https://code.google.com/p/pgn4web/wiki/PGN_Support#about_Chess960

@yo35
Copy link
Owner

yo35 commented Jun 26, 2014

This would be indeed useful, and will be implemented at some point.

However, as FEN parsing is delegated to a third-party JavaScript library (https://github.com/jhlywa/chess.js) that does not support Schredder-FEN, implementing this feature is not immediate.

@buffos
Copy link

buffos commented Dec 10, 2014

I guess chess.js is heading another way , at least this is what you understand reading the todo.

Another chesslibrary that might help and has a pretty good api is chesslib which already supports 960 and has on todo list fairy pieces and non standard board sizes (for chess problems etc...)

Unfortunatelly i do not know any chess js library that supports even more advance fen like those you can find here that can support overlaying crosses arrows , numbers and other, although i think adding those as attibutes (like wx=b5,c5 meaing white cross at b5 and c5, that way you dont have to mess with fen parsing at all) to your FEN shortcodes is not so hard (i ll give it a try)

@yo35
Copy link
Owner

yo35 commented Dec 10, 2014

chess.js impedes the implementation of chess 960 in the plugin, but also the improvement of parsing error messages (see #11). So I'm working on replacing it with a custom chess library. Should be available by January 2015 I hope.

Your suggestion about having some overlaying symbols on the chessboard is relevant. However it is not related to the chess library itself, but the graphical layer in charge of chessboard rendering in the HTML document.

@buffos
Copy link

buffos commented Dec 13, 2014

I was refering to the chess library, since the parsing is done there.

Anyway. I really like your plugin. Here is my usage at my club's website . Thx to your latest addition, fully responsive.

@drgibbon
Copy link

Just wondering about the viability of chess960 in rpb-chessboard these days, considering that the Unofficial Chess960 World Championship is on :)

By the way, X-FEN is not necessary for the display of chess960 games from the start (standard FEN can handle all 960 starting positions). X-FEN is only needed in cases which might arise in actual play where it's ambiguous which rook is the castling rook (although these positions must be quite rare). There's an X-FEN example here.

@yo35
Copy link
Owner

yo35 commented Feb 11, 2018

Hi,
Unfortunately, chess 960 is still not available in RPB Chessboard. However, I still plan to implement it in a future version -- especially if events such as the one you mentioned become more frequent.

@yo35
Copy link
Owner

yo35 commented Jul 22, 2018

Done in RPB Chessboard version 5.4.

@yo35 yo35 closed this as completed Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants