Skip to content

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

Notifications You must be signed in to change notification settings

lulunac27a/infinitely-roll-dice-game

Repository files navigation

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