/infinitely-roll-dice-game

Dice rolling game with infinite number of rolls until the rolled number is not the number of sides

Primary LanguageJupyter Notebook

Dice Game that Infinitely Rolls Until the Rolled Number is not the Number of Sides

This repository is a dice game using Jupyter Notebooks from iPython that rolls infinitely until the rolled number is not the number of sides of the dice. It uses ipywidgets to use widgets for sliders to change the number of sides of dice and a button to roll dice.

Files

  • infinite_dice_roll.ipynb: Roll a six-sided dice infinitely number of times until the last rolled dice is not six.
  • infinite_dice_roll_with_sides.ipynb: Roll a die with a specified number of sides infinitely a number of times until the last rolled dice is not the number of sides of the dice