Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmssnr/shuffling-probability
Visualizing shuffling probabilities with visx
https://github.com/jmssnr/shuffling-probability
mantine nextjs visx
Last synced: 7 days ago
JSON representation
Visualizing shuffling probabilities with visx
- Host: GitHub
- URL: https://github.com/jmssnr/shuffling-probability
- Owner: jmssnr
- Created: 2023-11-27T18:53:57.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-06T20:13:32.000Z (12 months ago)
- Last Synced: 2023-12-06T21:27:15.165Z (12 months ago)
- Topics: mantine, nextjs, visx
- Language: TypeScript
- Homepage: https://shuffling-probability.vercel.app
- Size: 193 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shuffle Probabilities
Consider a deck of 52 playing cards. After giving the deck a shuffle, where would you most likely find the original top card?
I created this small web-application based on [Next.js](https://nextjs.org/) and [visx](https://airbnb.io/visx) to give you the answer for several different types of shuffles.
![demo](public/demo.png)
## Development
To run the simulation models yourself, create a python environment and install the only dependency numpy:
```
python -m venv .venv
pip install numpy
```Calling `model.py` will then run the simulations and store the results in the `data.json` where it is picked up by the Next.js application.