Skip to content

Inline docs: docstrings + comment cleanup for Board + Move (#47)#55

Open
dbqpdb wants to merge 1 commit into
masterfrom
docs/inline-docs-board-move
Open

Inline docs: docstrings + comment cleanup for Board + Move (#47)#55
dbqpdb wants to merge 1 commit into
masterfrom
docs/inline-docs-board-move

Conversation

@dbqpdb

@dbqpdb dbqpdb commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary

First pass of #47, scoped to Board + Move (matching the order #46 used). Single commit. Annotation-only — no behavior changes; all 4 TestRLM cases pass plus test_entered_move_processing.

What changed

Diff shape

234 insertions, 260 deletions. Net negative.

Interactions with other open PRs

Out of scope

Piece and subclasses, Game, GameController, Player, Lexicon, Loudmouth. Same suggested-order as #46 — follow-up passes.

Closes #47 partially.

🤖 Generated with Claude Code

Pass-through both classes converting docstrings to Google style
(Args:/Returns:/Raises:), trimming verbose prose, and removing inline
comments that restate well-named code. No behavior changes.

Specific cleanups:
- Class docstrings now mention the rank/file index flip and link
  #37 once at the top, instead of in every method's NB-comment.
- Open design questions ("we'll need to decide as we carry on…")
  removed from docstrings — replaced with single references to the
  tracking issues (#37 for coords, #1 for the IDX_TO_FILE_DICT dup).
- Known bugs (#29, #31, #33) get a one-line comment at the site so
  future readers know it's a known issue without reading docstrings.
- Long `parse_move_without_game` docstring compressed; structure
  (args, return-dict keys, value tiers) reorganized into a scannable
  Google-style block.
- `__str__`'s board-art docstring kept (it's a useful sample of the
  output) but no longer pretends to be a "what about this?" prompt.

Net: 234 insertions, 260 deletions. All 4 TestRLM cases pass plus
test_entered_move_processing.

Follow-up pass will cover Piece + subclasses and Game / GameController.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

Docs: regularize inline docs and docstrings

1 participant