Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PGN library #5

Open
bahmanm opened this issue Sep 9, 2024 · 0 comments
Open

PGN library #5

bahmanm opened this issue Sep 9, 2024 · 0 comments
Assignees
Labels
✅ enhancement New feature or request
Milestone

Comments

@bahmanm
Copy link
Owner

bahmanm commented Sep 9, 2024

Create bPGN, a PGN library in a way that it can be used by bCS itself and others if they want to.
Unlike the current implementation (PGN.groovy) which is stateful (i.e DB) and tries to mimic a potential model layout of bCS, it should be stateless and only try to fairly represent a PGN structure.

For example:

class Tag {
  String key
  String value
}

class Ply {
  String san
  Ply next
  Ply prev
  List<Ply> variations

  String commentBefore
  String commentAfter

  String nag
}

class Game {
  List<Tag> tags
  Integer startngMoveNumber
  Ply first
}
@bahmanm bahmanm self-assigned this Sep 9, 2024
@bahmanm bahmanm added the ✅ enhancement New feature or request label Sep 9, 2024
@bahmanm bahmanm added this to the pre-release milestone Sep 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
✅ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant