Comments (4)
The idea is we want to generate valid PGN string and parse it using scalacheck. And the way to do it is generate it's AST a.k. San.
We are already using this technique in some places: BitboardTest, ByColorTest.
But I'm not sure what is the best way to generate those PGN, like if we use legalMoves
to generate those, it can be slow, if not the generated PGN can be illegal (but still valid). And do we really care if generated PGNs are legal or not.
from scalachess.
Can someone please assign me to this!
from scalachess.
Do you mind explaining this a little more? Why do we an AST to test PGN parser?
from scalachess.
Related Issues (20)
- Rename Paulsen Variation => Taimanov Variation?
- test failures (ForsythTest, HashTest)
- Fix En Passant in Horde for pawns in rank 1 HOT 1
- Reject pgn files that have invalid tags format HOT 1
- PGN cleanup may break comments HOT 1
- Master doesn't currently compile HOT 2
- variant: DFRC HOT 1
- timeout vs insufficient material in NvN antichess HOT 1
- Publish in a sbt repository HOT 1
- Expose situationAfter via MoveOrDrop HOT 5
- Rename `Pos` to `Square` HOT 2
- Support impossible checks when validate position HOT 14
- Migrate specs2 to munit HOT 3
- How do I get started? HOT 3
- Consider if we should stop using `TotalWrapper` for `OpaqueBitboard` for performance gain HOT 3
- rename `OpeningFen`
- Regression with regard to castling rights of inner rooks HOT 3
- Make all endgame drills same color HOT 1
- Generalize Pgn
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 scalachess.