Closed rdeyo1129 closed 8 months ago
You may try to use our chessground fork https://github.com/gbtami/chessgroundx It has built in pocket handling for drop variants.
@gbtami thanks for the response, yeah my repo is a fork of chessgroundx.. Sorry, wrong repo.
@gbtami I solved the issue, was looking for selectPocket
in the api. Thanks again.
Hello, I'm trying to implement a drop piece feature that doesn't use drag and drop but just click piece and then have the 'droppable' (or clickable in this case) dests to highlight the same way it works for regular moves. Here's some of the code that I'm trying and working with. I noticed the selected.enabled comment seems to be hinting at a click click feature if set to true, but it's not working. I also saw a working example of this in the pychess 'placement' variant. Any help or pointers is very appreciated, thank you.
value passed into
dests
propconfig.ts:
property used in the client via :