ctabin / jchess Goto Github PK
View Code? Open in Web Editor NEWSimple Java Chess API
License: GNU Lesser General Public License v2.1
Simple Java Chess API
License: GNU Lesser General Public License v2.1
This line assumes the move list always starts with 1.
:
Unfortunately when no move was played yet, this is not the case (only the result is repeated, typically * for a game that was just started, but can be anything technically). Can this be fixed?
I am using this library to store chess games played in Minecraft and this requires storing metadata of the game (players, date, etc.) while no move was made yet.
Hello, do you think it is a good idea to subclass pawnDisplacementRule and Pawn and override direction inside pawnDisplaymentRule so you have 2 new classes that you can use when black go first ? Because i believe currently the pawn only moves in direction for white.
Is there interest in supporting FEN? I think it would be a convenient way to store state (with the tradeoff of loosing the history). I like how compact FEN can be.
I was thinking in writing my own but I couldn't find a way to flip castling rights in jchess API. Any thoughts or comments on this?
I think it would be useful to be able to query the captured pieces in the game and I believe there is no support for this at the moment.
Jchess could hold captured pieces in memory. I think that a single list of pieces could hold the data for both players.
Alternatively, jchess could avoid storing that extra state and just offer a way to subscribe to captured events. The client would then be responsible of storing the captured piece when an event fires.
I would do it outside of jchess, but it seems that it would be reimplementing parts of jchess to do it.
It is not a blocker for me yet but I thought it would be a good idea to document this here.
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.