shubhendusaurabh / draughts.js

A Javascript draughts/checkers library for move generation/validation, piece placement/movement, and draw detection
Mozilla Public License 2.0
27 stars 11 forks source link

Maintainer #8

Closed Richienb closed 3 years ago

Richienb commented 3 years ago

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

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

// @shubhendusaurabh

shubhendusaurabh commented 3 years ago

Added

Richienb commented 3 years ago

@shubhendusaurabh I'm trying to rewrite the move validation but to do so, I need to know what version of Draughts we are supposed to be using.

shubhendusaurabh commented 3 years ago

@Richienb I think I had English draughts in mind when i started this project but long term aim was to cover all major versions through configuration.

But soon started another repo with support for 10x10 board: https://github.com/shubhendusaurabh/checkers.js as the bitboard logic was different and handling rule variations would increase complexity.

Richienb commented 3 years ago

@shubhendusaurabh Perhaps we can accept a gameType option which initialises different validation engines.

shubhendusaurabh commented 3 years ago

@Richienb yes, that's a good idea. with some default engine if no option passed.

Richienb commented 3 years ago

I've created the refactor branch and added some empty functions to https://github.com/shubhendusaurabh/draughts.js/blob/refactor/source/gameTypes/english.ts