Giter Club home page Giter Club logo

Comments (5)

Fulmene avatar Fulmene commented on September 15, 2024 1

The restriction is very practical though. In Chess, and most variants on pychess, all movements are subsets of Q+N, so adding this restriction eliminates all problems caused by any slight mouse slips, especially for long arrows. At least, someone found it useful enough to work on it. Besides, freestyle arrow is still possible with the "moving off the board" gesture, so I don't see a reason to remove the snap completely at all.

The question is: Do we allow Janggi Elephant arrow? On one hand, doing so will worsen the experience of drawing other pieces' (Bishop, Queen, Xiangqi Elephant) length-2 diagonal arrows. On the other hand, it's still an improvement over completely freestyle drawing. I personally don't have any strong views either way.

Maybe we should take this discussion to Discord for more opinions.

from chessgroundx.

gbtami avatar gbtami commented on September 15, 2024

@Fulmene you mentioned in pychess lobby chat that you remember what is the root of this issue. I can't :)

from chessgroundx.

Fulmene avatar Fulmene commented on September 15, 2024

Currently, a (2,3) arrow can still be drawn by moving the mouse off the board and back again for a "free style" mode.

This is where the problem is. Now that I checked it, I even commented on this when I first merged the feature :D

Since the function has no way to know what variant is being in effect (by design) though, adding Janggi Elephant here will affect all variants. It's why I'm still unsure about adding the arrow snap.

from chessgroundx.

gbtami avatar gbtami commented on September 15, 2024

As I see this restriction (queen+night) has no practical benefit when someone wants to draw an arrow.
It would be much better to enable to draw all the possible pairs of (a,b) to (c,d) instead.
What do you think?

from chessgroundx.

Fulmene avatar Fulmene commented on September 15, 2024

Fixed in ac68943

from chessgroundx.

Related Issues (6)

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.