-
Notifications
You must be signed in to change notification settings - Fork 25
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
Possible bug with setPGN #204
Comments
Hi thank you for this issue |
But why it is not correct? Because it'll be check mate? AFAIK technically in a real play you'll be able to do this move (and then loose to the queen). Am I wrong? Those PGN are from real games and I think they're the real moves executed. Why castling are not performed in free mode? |
e2 square is covered by queen. Thats not checkmate but you cant make move with king to a square which is covered by queen (or any other pieces). In real play you cant make this move. Castling isnt performed in free mode because it moves pieces freely, lets say you may want to move king by two squares to set some position and dont want to make castle. If you wanted to make castle then you would have to move rook manually in 2nd move |
I'm sorry to insist, why it's a non valid move? In a real play will not be able to move there the king and then lose the game by the queen killing it? It's an stupid move, but not invalid or am I wrong? |
Thats illegal move and cannot be maken. Thats against chess rules that you cant move the king to a square which enemys piece has covered.
|
Hello, I'm using your board to make a chess game viewer. For that I have a code that splits PGN moves and depending on the turn it concats moves and calls setPGN to show every turn on the game.
I'm having problems with this PGN:
If you take a look to moves 60 and beyond you'll see this:
If you load the game you'll be able to see that in turn 61 black player moves the queen to d3 and then white player moves king to e2. This is dumb because it'll be a check mate, but this PGN it's from a real game so I'm assuming black player did not noticed and moved back queen to d4.
If I do a setPGN with the moves from 1 to 61 works well. When I add turn 62 the king does not move.
So I assumed it's not a "valid" movement (technically, it is I think) and then I tried to use the freemode option to true and then something stranger happened.
If you take a look to move 14th there's a kingside castling. When freemode is false it works correctly, but with freemode to true king moves to the correct place but rook remains in the original spot.
Freemode = false
Freemode = true
It's a bug or am I doing something wrong?
The text was updated successfully, but these errors were encountered: