Recreate the Twitch dice roll simulation in the comfort of your own home.
The code is written in Go, there's nothing overly complicated here. Clone the repository and the you can run the program.
go run dice_plus_stats.go
The output is to the terminal and clears the screen each run.
***** Rolled a 2 *****
+-------+
| * |
| |
| * |
+-------+
Dice Roll Stats:
Dice Face Count Percentage
===============================
1 421 15.77 %
2 434 16.26 %
3 437 16.37 %
4 413 15.47 %
5 494 18.51 %
6 470 17.61 %
Last 10 Rolls: 5 4 6 1 1 6 4 1 1 2
Total Rolls: 2669
You can watch the stream on my Twitch channel: @jasonbelldata