Replace copyrighted life.occ with download-and-patch script#95
Merged
associate-3 merged 2 commits intomainfrom Feb 24, 2026
Merged
Replace copyrighted life.occ with download-and-patch script#95associate-3 merged 2 commits intomainfrom
associate-3 merged 2 commits intomainfrom
Conversation
Remove the in-repo copy of the book example program and replace it with a fetch-life.sh script that downloads the original from the book website and applies the necessary modifications via line-number-targeted sed edits. The script avoids reproducing copyrighted content by using small surgical substitutions (e.g. adding channel direction annotations) and indentation rather than replacing entire lines. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dboreham
approved these changes
Feb 24, 2026
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.
Summary
historical-examples/life.occ)fetch-life.shscript that downloads the original from the book website and applies modifications via surgical sed editshistorical-examples/life.occto.gitignoreso the generated file isn't accidentally committedApproach
The script uses line-number-targeted sed edits applied bottom-to-top so line numbers remain stable. Modifications that touch existing lines use minimal substitutions (e.g.
s/screen)/screen!)/) rather than replacing entire lines, avoiding reproduction of copyrighted content. Only genuinely new code (helper procedures, rewrittenclear.screen/move.cursorimplementations) appears in full.Test plan
go vet./historical-examples/fetch-life.shfrom a clean checkout and verifylife.occis createdCloses #94
🤖 Generated with Claude Code