Coder Social home page Coder Social logo

shubhendusaurabh / draughts.js Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 11.0 63 KB

A Javascript draughts/checkers library for move generation/validation, piece placement/movement, and draw detection

License: Mozilla Public License 2.0

JavaScript 100.00%
board checkers draughts games

draughts.js's People

Contributors

msmithdev avatar petitlapin avatar shubhendusaurabh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

draughts.js's Issues

Maintainer

I can help maintain draughts.js, completing all of the todos left.

Please add me as a maintainer on Github and on npm.

// @shubhendusaurabh

Remove clause of incompatibility license

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

king can move to its own position

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

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.