Skip to content

Add instanceFormat/certificateFormat declarations to SUDOKU - #496

Open
Trosper3 wants to merge 3 commits into
CSharpAPIfrom
backfill/sudoku-format
Open

Add instanceFormat/certificateFormat declarations to SUDOKU#496
Trosper3 wants to merge 3 commits into
CSharpAPIfrom
backfill/sudoku-format

Conversation

@Trosper3

Copy link
Copy Markdown
Contributor

Summary

  • SUDOKU never adopted the self-describing instance/certificate format pattern (Interfaces/ProblemInterface.cs).
  • Declares instanceFormat describing the semicolon-separated row grammar and certificateFormat describing the fully-filled solution-grid certificate, on SUDOKU_Class.cs.
  • Format-declaration tests follow the existing DFA/NFA_Tests pattern, plus a check that the certificate example quoted in the format string actually verifies true against defaultInstance — reusing the solved grid that had been sitting commented-out in SUDOKU_Class.cs (confirmed it's a genuinely valid solve of the default puzzle).

Closes #451

Test plan

  • dotnet test redux-tests/redux-tests.csproj --filter "FullyQualifiedName~SUDOKU" — 15/15 passing

Trosper3 and others added 2 commits August 22, 2026 22:33
SUDOKU never adopted the self-describing instance/certificate format
pattern (Interfaces/ProblemInterface.cs). Declares instanceFormat
describing the semicolon-separated row grammar and certificateFormat
describing the fully-filled solution-grid certificate.

Format-declaration tests follow the existing DFA/NFA_Tests pattern,
plus a check that the certificate example quoted in the format string
actually verifies true against defaultInstance (reusing the solved
grid that had been sitting commented-out in SUDOKU_Class.cs).
@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

Redux Build System — CI Report

dotnet · commit b522620

Operation Status Summary Time
audit no known vulnerabilities 4.1s
format-check all files formatted 13.8s
lint 0 issues 21.7s
typecheck ⏭️ covered by lint (dotnet build)
unit-test 841 passed · coverage 65% (min 80%) 29.7s
build built local/redux:ci · 234MB 27.2s
integration-test ⏭️ no [integration] command
push ⏭️ not implemented

Overall: ❌ 4 passed · 1 failed · 3 skipped

Adds named InstanceGrammar const (SUDOKU parses manually rather than
via StringParser) and CertificateGrammar/CertificateExample consts on
SudokuVerifier, interpolated into instanceFormat/certificateFormat
instead of hand-duplicated prose.
@Trosper3
Trosper3 requested a review from wrigjl August 31, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backfill instanceFormat/certificateFormat: NPC_SUDOKU

1 participant