Skip to content

Add HEN Support for position import, export, and teaching games #821

Description

@hemme

Hi @sanderland

I am the author of HEN, a new serialization format specifically designed to represent static positions in Go (similar to how FEN works for Chess).

I believe this format would be a valuable addition to KaTrain and I would like to suggest the following features:

  • Paste HEN from Clipboard. This should be straightforward to implement: when the user pastes content, if it is a valid HEN string, KaTrain could convert it to SGF and load it onto the goban just as it would with an SGF file.
  • Import position from PNG+hen. Allow the Load Game command to browse for PNG images. Import a goban position if the selected PNG has HEN metadata.
  • Copy as HEN. Add a command that copies the current goban position to the clipboard in HEN format.
  • New Teaching Game from HEN. Allow users to start a new teaching game against a bot from a position specified by a HEN string.

I would also be happy to help with the implementation. For example, I can provide and maintain SGF-to-HEN and HEN-to-SGF conversion functions in various programming languages ‹through a dedicated repository / e.g. hen-python,
making integration easier for KaTrain and other Go-related projects (just let me know!)

I think these features would make it easier to share, analyze, and discuss Go positions across different tools and platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions