newbrict / chess Goto Github PK
View Code? Open in Web Editor NEWCoffeescript Chess
License: Apache License 2.0
Coffeescript Chess
License: Apache License 2.0
Along with #4 we need to do end-game checking including
stalemates ( no legal moves, 3 fold repetition, 50 move rule, impossible mates )
let's get these tests on CI!
We have nothing implemented for castling yet, shouldn't be too bad but it has to happen
Another feature we need to implement at some point, this definitely depends on #1 so that has to get done first.
Currently, the pawn movement checks if the pawn "hasMoved".
It should instead check if the piece is on the starting line (y=1 for white, y=6 for black) to work better with imported FEN strings.
I know some areas aren't good with the capture logic, the pawn doesn't seem to work, didn't check everything else yet
Have to implement checks ( ha ) for king.
We need a move validity checker, imagine you move a piece and that caused the king to be in check. has to check for board state and what not
this probably needs #1
We need to implement some sort of board history.
It would be good if we did this in algebraic notation since it's pretty standard and lots of other chess programs can read/import games like that.
From now on we add a third parameter to the move list
[x,y,type]
where type can be
"move"
"castle"
"en passant"
"capture"
which will simplify some things down the road.
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.