# Coding Challenge #139: Calculating Digits of Pi with Collisions

Happy Pi Day! In this video I attempt to compute the digits of Pi using the “collisions” method, thanks to 3Blue1Brown for the idea!

💻 https://thecodingtrain.com/CodingChallenges/139-pi-collisions.html
💻 https://editor.p5js.org/codingtrain/sketches/4FuKfd-LJ
💻 https://github.com/CodingTrain/Pi-Day-2019

🔗 Playing Pool with Pi: https://www.maths.tcd.ie/~lebed/Galperin.%20Playing%20pool%20with%20pi.pdf
🔗 Elastic collision on Wikipedia: https://en.wikipedia.org/wiki/Elastic_collision
🔗 Euler Method on Wikipedia: https://en.wikipedia.org/wiki/Euler_method

🎥 The most unexpected answer to a counting puzzle by 3Blue1Brown: https://youtu.be/HEfHFsfGXjs
🎥 How colliding blocks act like a beam of light…to compute pi by 3Blue1Brown: https://youtu.be/brU5yLm9DZM
🎥 Pi and Bouncing Balls by Numberphile: https://youtu.be/abv4Fz7oNr0
🎥 Patron/Member Live Stream: https://youtu.be/yii2P7WVfNE

🚂 Website: http://thecodingtrain.com/
💖 Patreon: https://patreon.com/codingtrain
🛒 Store: https://www.designbyhumans.com/shop/codingtrain/
📚 Books: https://www.amazon.com/shop/thecodingtrain