Skip to content

feat: add neighborhood abstraction - #32

Merged
MartinuzziFrancesco merged 4 commits into
masterfrom
fm/neighborhood
Jul 30, 2026
Merged

MartinuzziFrancesco merged 4 commits into
masterfrom
fm/neighborhood

Conversation

@MartinuzziFrancesco

Copy link
Copy Markdown
Owner

No description provided.

MartinuzziFrancesco and others added 4 commits July 30, 2026 08:08
Life hardcoded a square (Moore) neighborhood. Pull the shape out into
small types, matching the existing boundary-condition pattern, so
Life can use VonNeumann too and future rules (Lenia) can reuse the
same offset-generation mechanism as their perception kernel.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLo6tnomTm1Z3c2hoe8PmH
Custom AbstractNeighborhood subtypes can now plug into Life by
implementing neighborhood_offsets and neighborhood_radius, rather than
relying on the internal __offsets helper.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLo6tnomTm1Z3c2hoe8PmH
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLo6tnomTm1Z3c2hoe8PmH
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLo6tnomTm1Z3c2hoe8PmH
@MartinuzziFrancesco
MartinuzziFrancesco merged commit b000f2b into master Jul 30, 2026
9 checks passed
@MartinuzziFrancesco
MartinuzziFrancesco deleted the fm/neighborhood branch July 30, 2026 06:36
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.

1 participant