Comments (2)
Hi, like on Lichess and similar to X-FEN, the en passant square is only included if there is actually a legal en passant move. If you really need it, you can force it as follows:
const setup = chess.toSetup();
setup.epSquare = chess.epSquare;
makeFen(chess.toSetup())
from chessops.
Oh, that makes sense & is completely fine for my needs; I just need to adjust some of my my test cases a little. Thanks for the very fast response (and wonderful library)!
from chessops.
Related Issues (20)
- SAN and/or UCI move list parsing HOT 1
- FEN parsing and validation: regression or refactoring? HOT 4
- Chess.hasInsufficientMaterial not entirely correct HOT 2
- Have a parseCastlingFen equivalent for enPassant HOT 1
- Support for mate eval notation starting with M HOT 9
- multiple FEN only PGNs are counted as one HOT 6
- Add cjs target HOT 1
- Incorrectly parsing variation past end of game as exported from Lichess study HOT 3
- βWARNβ deprecated [email protected]: Version published from wrong branch HOT 1
- can't use as part of script with import chessops/pgn etc. without type module HOT 5
- How to write PGN back to a file
- Capablanca variant / Variable board size HOT 1
- Giving check in 3check does not change remaining checks HOT 1
- PGN parsing and writing HOT 4
- Request for new release with ES Module Support HOT 1
- Test for standard material
- Fen with empty castling field is accepted as valid HOT 1
- Fen with repeated tokens in castling field accepted as valid HOT 1
- Fifty-move and Threefold repetition rules HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chessops.