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

about the search indices #38

Open
roywithfiringblade opened this issue Nov 22, 2020 · 1 comment
Open

about the search indices #38

roywithfiringblade opened this issue Nov 22, 2020 · 1 comment

Comments

@roywithfiringblade
Copy link

` for x in range(1, max_radius):
search_dirs.append((0, x))

    for y in range(1, max_radius): 
        for x in range(-max_radius + 1, max_radius):
            if x * x + y * y < max_radius ** 2:
                search_dirs.append((y, x))`

Thanks for sharing the work. I think the search_dirs seems to be a half circle instead of a circle. Not sure whether i understand it correctly.
Look forward to your reply.

@anArkitek
Copy link

@704051419
Hi I have the same question. Have you figured out why only half circle is considered?

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

No branches or pull requests

2 participants