Interactive Buffon's Needle calculator and Monte Carlo simulator built with plain HTML, CSS, and JavaScript.
Runs as a fully static site on GitHub Pages (no backend, no build tools).
- Theoretical intersection probability for Buffon's Needle
- Monte Carlo simulation (animated)
- Seeded RNG for deterministic runs
- Live charts (Chart.js)
- Canvas visualization of throws
- Keep-all-needles mode
- CS/EN language switch
- Light theme UI
- Works on desktop and mobile
index.htmlstyles.cssapp.js- Chart.js via CDN
Open index.html in a browser.
https://majkey25.github.io/buffoncalc/
.
|-- index.html
|-- styles.css
|-- app.js
|-- LICENSE
|-- README.md
MIT - see LICENSE.