shubhendusaurabh / draughts.js Goto Github PK
View Code? Open in Web Editor NEWA Javascript draughts/checkers library for move generation/validation, piece placement/movement, and draw detection
License: Mozilla Public License 2.0
A Javascript draughts/checkers library for move generation/validation, piece placement/movement, and draw detection
License: Mozilla Public License 2.0
I can help maintain draughts.js, completing all of the todos left.
Please add me as a maintainer on Github and on npm.
Hi,
I'm one of GCompris developers'. We are using your checkers library in our software (released under GPLv3+ licence) and we just noticed that in the licence of your library, there is the "Exhibit B" ("Incompatible With Secondary Licenses") which prevents us to provide GCompris+shipping of your library under GPLv3 license only (https://invent.kde.org/education/gcompris/-/tree/master/src/activities/checkers).
Is there a reason to have this clause or can you remove it? I can make a PR to remove it if it is ok with you
Love the package! It would be really cool if we could adjust the board size to either 8 or 10, since draughts is also commonly played on 8x8 boards.
For faster move generation and validation.
For example, with B:WK1,K2,14,16,31,37,42:BK49 fen, state.moves() will return [{"jumps":[],"takes":[],"from":49,"to":49},{"jumps":[],"takes":[],"from":49,"to":44},{"jumps":[],"takes":[],"from":49,"to":49},{"jumps":[],"takes":[],"from":49,"to":43}]
You can see twice the king can move to its own position.
I don't think the rules allow it and I didn't found in the code where the list is generated, maybe you know how to remove them?
Thanks,
Johnny
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.