Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent repeating entries in _neighbors and explain how units and peers are encoded #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

akumm2k
Copy link

@akumm2k akumm2k commented Feb 8, 2022

I landed on this repo via Peter Norvig's webpage. Some of the terminology used on his page is different than in your implementation. The comments make it easier to understand the contents of the vectors that store the units of a box - _group - and the positions of the units in that vector for a given box - _group_of. _neighbors contextually refers to peers.

Moreover, _neighbors contained unnecessary repeating entries in the implementation. Now, _neighbors resembles the set of peers.

The vectors referred to in the title are _group, _group_of
and _neighbors.
@akumm2k akumm2k changed the title Prevent Prevent repeating entries in _neighbors and add explain how units and peers are encoded Feb 8, 2022
@akumm2k akumm2k changed the title Prevent repeating entries in _neighbors and add explain how units and peers are encoded Prevent repeating entries in _neighbors and explain how units and peers are encoded Feb 8, 2022
This commit makes the comments clearer.
Box and square were interchanged. 
Box is actually the entire unit and not the square.
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