Draft
Add structural Board→text renderer and integrate it into run_solver#225
Board→text renderer and integrate it into run_solver#225Conversation
Agent-Logs-Url: https://github.com/semiexp/cspuz_core/sessions/4945d9ba-62c3-42f6-a8f9-4370ffca4293 Co-authored-by: semiexp <7336994+semiexp@users.noreply.github.com>
Agent-Logs-Url: https://github.com/semiexp/cspuz_core/sessions/4945d9ba-62c3-42f6-a8f9-4370ffca4293 Co-authored-by: semiexp <7336994+semiexp@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
semiexp
April 17, 2026 03:06
View session
Owner
見づらいです。+---+ のように、境界線が途切れなく見えるようにしてください |
Agent-Logs-Url: https://github.com/semiexp/cspuz_core/sessions/e53928dc-c1d4-4215-a924-1c744801c989 Co-authored-by: semiexp <7336994+semiexp@users.noreply.github.com>
Contributor
Author
... 対応しました。連続した境界線になるように Screenshot (run_solver output): |
Owner
yajilin を入れたらこうなりましたが、描画が明らかにおかしいです。修正してください |
Agent-Logs-Url: https://github.com/semiexp/cspuz_core/sessions/2ef9c45d-1854-44ac-b6af-38bc52cc350e Co-authored-by: semiexp <7336994+semiexp@users.noreply.github.com>
Contributor
Author
... 修正しました。 Screenshot (run_solver output, yajilin): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
run_solverpreviously had no compact text output for solved boards. This change adds a backend-side text renderer that infers rendering fromBoardstructure, focuses on answer data (greenitems), and returnsNonefor unsupported board/item patterns.Board text rendering API
Board::to_text() -> Option<String>incspuz_solver_backend/src/board.rs.greenitems (e.g. block/dot/number/square and line/cross-style edges).greenitem kinds, conflicting placements, or invalid coordinates returnNone.+---+) for dot-grid boards (e.g. slitherlink), while keeping non-dot-grid boards (e.g. yajilin) on the original spacing-based renderer to avoid malformed output.run_solverintegrationcspuz_solver_backend/src/bin/run_solver.rsto print text output in non-JSON mode whento_text()returnsSome(...).--jsonbehavior remains unchanged.Coverage for required puzzle families
to_text()is produced for required puzzle URLs (nurikabe, fillomino, slitherlink, yajilin, heyawake, dbchoco, evolmino).None.+---+) on slitherlink+vertex rendering from leaking into yajilin output