This app will simulate rolling several dice at once. It allows users to change the type of dice rolled as well as the number of dice rolled. It will display the current roll as well as a history of previous rolls.
This is a python adaptation of the App Inventor Dice Bag app.
This app uses a while(True) loop-and-a-half with prints and inputs for it's text layout.
The main code is in the event handler for the roll button click.
It first needs to make sure that the textbox text is a number, then it can roll all the dice using a procedure.
It will then store the results in a list, then add that list to the history.
Finally it will neatly display the history of all the dice rolls using another procedure.
This display results procedure is also useful when coding the clear history button.