Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
What is this?
A three-part Go code-along from Programming for Lovers. Part 1 introduces structs and methods, including pointer receivers. Part 2 organizes the simulation's data types, reads initial systems from file, draws bodies and trails to a canvas, and renders the result as an animated GIF. Part 3 builds a gravity physics engine from Newton's laws (acceleration, velocity, and position updates) and runs the finished program from the command line to animate Jupiter's moons and several periodic three-body orbits. Each part has a video and full code, and the starter code (file I/O and drawing helpers plus data files) is a free download.
Checklist
- [Title](https://...)format, placed under the correct section (nested- [Part N](...)for multi-part series).python3 scripts/check_readme.py lintlocally and it exits 0.Lint and
check-diffexit 0, andcheck-linkson the three added URLs returns 200 for each.🤖 Generated with Claude Code