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

fix distances of sierpinsky board #369

Merged
merged 2 commits into from
Jan 4, 2025
Merged

fix distances of sierpinsky board #369

merged 2 commits into from
Jan 4, 2025

Conversation

merowin
Copy link
Collaborator

@merowin merowin commented Jan 2, 2025

I am happy to see that somebody played on the Sierpinsky board 😄
I noticed that the stones overlap:

grafik

This PR fixes it:

grafik

Copy link
Collaborator

@benjaminpjones benjaminpjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice!

I notice there's some commented code in this file that probably needs a similar fix. Generally, I recommend deleting commented code due to the tendency to get out-of-date.

@@ -2,15 +2,15 @@ import { Vector2D } from "./types/Vector2D";
import { Intersection } from "./types/intersection";

export function createSierpinskyBoard(depth: number): Intersection[] {
const sideLength = Math.pow(2, depth + 1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better!

Just to make sure I understand the name change... is this the radius in question?

Screenshot 2025-01-02 at 9 01 48 PM

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make sure I understand the name change... is this the radius in question?

Yes exactly 🙂

@merowin merowin merged commit f74abf1 into main Jan 4, 2025
3 checks passed
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.

2 participants