Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gmasclet
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
gmasclet
2y ago
The DSL itself is pretty nice. However, one thing I found annoying is that the printing function itself is hard to unit test: there is no easy way to instantiate its parameters (in particular the `ASTPath` class). So I relied on testing it
2.
▲
by
gmasclet
2y ago
Thanks for the idea, I'd not considered it. LaTex may have some use, I'll take a look. Indeed, probably the best solution to publish a game with diagrams. For personal notes, I would also consider embedding PGN into Markdown. Sadl
3.
▲
by
gmasclet
2y ago
You're welcome! By the way, something I've considered but not implemented yet are options to tweak the formatting (for instance, whether to indent or inline comments / variations). The Prettier approach is to be opinionated,
4.
▲
Show HN: Pretty-print your chess games using Prettier
(github.com)
103 points
by
gmasclet
2y ago
|
10 comments