a rare events bingo game
adapted from: http://threadbarecanvas.azurewebsites.net/jquery/bingo-card-javascript-and-jquery/
- Clone the repo.
- Create a "data.txt" file and place it in the same directory as index.html (See below for instructions)
- In the same directory as index.html, run a simple HTTP server by issuing the command
python -m SimpleHTTPServer
- Navigate to 127.0.0.1:8000 in your browser and play!
You can mess with the weights and items in data.txt. The weighting is: 1 = rare event 2 = neither rare nor common 3 = common event
Try not to exceed 3,... javascript multiplies all the weights together before it does the sampling. If the product gets too big.. yea... not good. Alternatively, make sure the product is at least 25 so there are enough options to fill all the squares.
event,weight
-no headers!