Clariity / react-chessboard

The React Chessboard Library used at ChessOpenings.co.uk. Inspired and adapted from the unmaintained Chessboard.jsx.
https://react-chessboard.vercel.app
MIT License
351 stars 103 forks source link

Castling Right issue in Manual Board Editor #169

Open Pratikdubey7735 opened 1 week ago

Pratikdubey7735 commented 1 week ago

Hi Sir, I hope this message finds you well. I am reaching out to seek assistance regarding an issue I've encountered with the FEN generator in application that utilizes the Manual Board Editor feature.

Currently, when generating FEN strings for chess positions, I have noticed that the castling rights are not being correctly added. This issue is impacting the accurate representation of board states, particularly in scenarios where castling is a viable move. As you know, the correct representation of castling rights is crucial for the integrity of chess gameplay and analysis.

Clariity commented 1 week ago

Please provide a minimum reproducible example

Pratikdubey7735 commented 1 week ago

Actually Sir I was using the Manual setup board feature where we can setup board manually and generate a FEN and I was sending that FEN to another component where I was trying to play that FEN so when that FEN is loaded on Chessboard then I am unable to do castling because in FEN castling rights is not there. Can you suggest me some way to resolve it.

On Mon, 4 Nov, 2024, 9:10 pm Ryan, @.***> wrote:

Please provide a minimum reproducible example

— Reply to this email directly, view it on GitHub https://github.com/Clariity/react-chessboard/issues/169#issuecomment-2455044813, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC5SSRFAVBL7PB5ZMYY6NGLZ66IOXAVCNFSM6AAAAABRC6BASWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJVGA2DIOBRGM . You are receiving this because you authored the thread.Message ID: @.***>

Pratikdubey7735 commented 1 week ago

Sir no any update after that. Can you please help me for that?

On Mon, 4 Nov, 2024, 9:15 pm Pratik Dubey, @.***> wrote:

Actually Sir I was using the Manual setup board feature where we can setup board manually and generate a FEN and I was sending that FEN to another component where I was trying to play that FEN so when that FEN is loaded on Chessboard then I am unable to do castling because in FEN castling rights is not there. Can you suggest me some way to resolve it.

On Mon, 4 Nov, 2024, 9:10 pm Ryan, @.***> wrote:

Please provide a minimum reproducible example

— Reply to this email directly, view it on GitHub https://github.com/Clariity/react-chessboard/issues/169#issuecomment-2455044813, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC5SSRFAVBL7PB5ZMYY6NGLZ66IOXAVCNFSM6AAAAABRC6BASWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJVGA2DIOBRGM . You are receiving this because you authored the thread.Message ID: @.***>

Clariity commented 1 week ago

This sounds like it's likely to do with chess.js logic instead of react-chessboard logic

react-chessboard does not provide any logic for the chess game, only for pieces to move around a board, we use chess.js in examples but any chess (or not even chess) logic can be applied to the board

there is little I can do without a minimum reproduction

Pratikdubey7735 commented 1 week ago

Ok, thanks for the clarification.

On Tue, 5 Nov, 2024, 8:48 pm Ryan, @.***> wrote:

This sounds like it's likely to do with chess.js logic instead of react-chessboard logic

react-chessboard does not provide any logic for the chess game, only for pieces to move around a board, we use chess.js in examples but any chess (or not even chess) logic can be applied to the board

there is little I can do without a minimum reproduction

— Reply to this email directly, view it on GitHub https://github.com/Clariity/react-chessboard/issues/169#issuecomment-2457450215, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC5SSRHCM6ZZJKV2RYJ5MOTZ7DOVXAVCNFSM6AAAAABRC6BASWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJXGQ2TAMRRGU . You are receiving this because you authored the thread.Message ID: @.***>

Pratikdubey7735 commented 1 week ago

Sir I am making a project by using react chessboard can you please help me for that if I make you as a collaborator on Github.

On Tue, 5 Nov, 2024, 8:50 pm Pratik Dubey, @.***> wrote:

Ok, thanks for the clarification.

On Tue, 5 Nov, 2024, 8:48 pm Ryan, @.***> wrote:

This sounds like it's likely to do with chess.js logic instead of react-chessboard logic

react-chessboard does not provide any logic for the chess game, only for pieces to move around a board, we use chess.js in examples but any chess (or not even chess) logic can be applied to the board

there is little I can do without a minimum reproduction

— Reply to this email directly, view it on GitHub https://github.com/Clariity/react-chessboard/issues/169#issuecomment-2457450215, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC5SSRHCM6ZZJKV2RYJ5MOTZ7DOVXAVCNFSM6AAAAABRC6BASWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJXGQ2TAMRRGU . You are receiving this because you authored the thread.Message ID: @.***>