Skip to content
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

Arrows and square highlights #12

Open
ajax333221 opened this issue May 17, 2021 · 1 comment
Open

Arrows and square highlights #12

ajax333221 opened this issue May 17, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ajax333221
Copy link
Owner

Most likely done via Right clicking (once for red square highlight toggle and click+drag for arrow drawing).

Left clicking a square should clear all arrows and red squares.

Config. to have this disabled.

Maybe there should also be a way to describe these arrows in a PGN comment or NAG so they get drawn as the replayer reads the move.

@ajax333221 ajax333221 added the enhancement New feature or request label May 17, 2021
@VladimirMishka
Copy link

There is another way to use arrows and circles which is actually more important for me, that is simply programmatically. I am planning a 3-check training app which would read a PGN and after each move do some calculations for Checks, Captures, and Threats (is the opponent threatening a check or capture; if I don't have a check or capture can I threaten a check or useful capture on my next move). This would be similar to the following API methods from vue3-chessboard which uses chessground as the UI:

/**

  • draws arrows and circles on the board for possible moves/captures
    */
    drawMoves(): void;

/**

  • removes arrows and circles from the board for possible moves/captures
    */
    hideMoves(): void;

/**

  • draws an arrow on the board
    */
    drawMove(orig: Square, dest: Square, brushColor: BrushColor): void;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants