Skip to content

BE-72: Automated PGN Export Validator with Strict FIDE Sanity Checks #1139

Description

@chinweobtagaz

Problem Statement

Exported PGN files must be strictly compliant with standard PGN specifications so they can be imported into third-party tools like ChessBase, Lichess, and SCID.

Proposed Solution

  1. Build a strict PGN serializer enforcing Seven Tag Roster (Event, Site, Date, Round, White, Black, Result).
  2. Validate move syntax formatting, move numbers, check/checkmate suffixes (+, #), and termination headers.
  3. Include standard evaluation comments and move times formatted according to PGN standard.

Acceptance Criteria

  • 100% valid PGN format confirmed against standard PGN linters.
  • Accurate export for standard, Chess960, and custom variants.
  • Unit tests for all game ending scenarios (Resignation, Timeout, Stalemate, 50-move rule).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions