niklasf / chessops

Chess and chess variant rules and operations in TypeScript
https://niklasf.github.io/chessops/
GNU General Public License v3.0
119 stars 35 forks source link

Extend mainline function for PGN/game #165

Closed kraktus closed 9 months ago

kraktus commented 9 months ago

Convenience function for PGN/game. named extend because taking a list of data.

niklasf commented 9 months ago

Thanks. Merging for now. I have not given much thought to tree operations, so will ponder a bit before making a release and look at https://github.com/lichess-org/scalachess/blob/master/src/main/scala/Node.scala for inspiration.

kraktus commented 9 months ago

Sure. I'm using a vendored version for lichess-mule so no rush at all. Since it's for broadcasting the PGN only has a mainline so did not think about variations either.