Code Monkey home page Code Monkey logo

Comments (5)

grzegorz103 avatar grzegorz103 commented on September 7, 2024

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.

thecko avatar thecko commented on September 7, 2024

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.

grzegorz103 avatar grzegorz103 commented on September 7, 2024

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.

thecko avatar thecko commented on September 7, 2024

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.

grzegorz103 avatar grzegorz103 commented on September 7, 2024

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

  1. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.