Skip to content

Showcase Submission for challenges/180-falling-sand #1804

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

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

ch00ooch00oo
Copy link
Collaborator

Thank you Sergey Alyaev for your contribution! A member of the Coding Train team will review it shortly.

preview image

@ch00ooch00oo ch00ooch00oo added the showcase Passenger Showcase Submission label Jan 25, 2025
Copy link

netlify bot commented Jan 25, 2025

Deploy Preview for codingtrain ready!

Name Link
🔨 Latest commit 8a3782f
🔍 Latest deploy log https://app.netlify.com/sites/codingtrain/deploys/679570edb2c5130008f08889
😎 Deploy Preview https://deploy-preview-1804--codingtrain.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@alin256
Copy link
Contributor

alin256 commented Jan 25, 2025

Because of procrastination I fixed a mass conservation bug in the Falling Sand simulation that bothered me since I saw the video. In the coding challenge implementation if two sand particles “claim” the same spot in the new grid, only one survives.

The image shows how much sand went missing. The input in the left and the right panels are identical, but implementations are different.

This comparison is in its branch on my github: https://github.com/alin256/falling_sand_fixed/tree/comparison

Here is the code in the p5 editor for convenience https://editor.p5js.org/aliner/sketches/hsWHgic1t

@shiffman
Copy link
Member

This is amazing! I need to go over it on a live stream!

@shiffman shiffman merged commit d0bffde into main Jan 28, 2025
6 checks passed
@shiffman shiffman deleted the showcase-sergey-alyaev-1737847017 branch January 28, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
showcase Passenger Showcase Submission
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants