Comments (5)
Hi thank you for this issue
I checked the PNG you wrote and after 61 move the Ke2 move isn't correct as you mentioned and the board doesnt load it as it loads only valid moves. Enabling free mode wont help in this case - this mode lets you to drag pieces without any constraints. It is more for position analysis where you may want to move pieces freely to any square (CTRL + LMB on piece deletes it btw :) ). Castling isnt performed with free mode on. I think you need to put only valid PGNs and it should work fine
from ngx-chess-board.
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?
from ngx-chess-board.
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
from ngx-chess-board.
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?
from ngx-chess-board.
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.
Lets say we got this simple PGN for example
- d4 e5 2. e4 Qg5
you can see you cant move the king from e1 to d2 because queen is covering it. Thats the same situation with your given PGN
from ngx-chess-board.
Related Issues (20)
- Get list of captured pieces HOT 6
- Bug with possible captures HOT 2
- Show promotion modal based on player color HOT 14
- Appears an extra bishop HOT 4
- Algebraic Notation - Unable to know if move has put opponent in Check HOT 4
- Issue with the setPGN Method HOT 6
- Unable to move same piece to original position after calling Undo() HOT 2
- Adding Piece to a Fresh Untouched Board causes Console Error 'setGamesStates' HOT 2
- Freemode Functionality HOT 2
- Upgrade to angular 13 HOT 6
- Angular 12 HOT 6
- style HOT 1
- Appologies if this is not ther ight place for this HOT 3
- Cannot add sub-variations
- Error ExpressionChangedAfterItHasBeenCheckedError on render board HOT 1
- Pieces are not well centered
- ERROR TypeError: Cannot read properties of null (reading 'point')
- How to give the best moves to the opponent from the stock fish HOT 3
- [showLastMove], [lightTileColor] and [darkTileColor] HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-chess-board.