From 44f02d9347fae892600251fc355cd409fcfcb84f Mon Sep 17 00:00:00 2001 From: Sahil Sharma <74351253+ys1113457623@users.noreply.github.com> Date: Wed, 5 Oct 2022 01:57:34 +0530 Subject: [PATCH] dice simulator added --- Projects/1-Beginner/Dice-Simulator.md | 35 +++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 36 insertions(+) create mode 100644 Projects/1-Beginner/Dice-Simulator.md diff --git a/Projects/1-Beginner/Dice-Simulator.md b/Projects/1-Beginner/Dice-Simulator.md new file mode 100644 index 00000000..1d7204a6 --- /dev/null +++ b/Projects/1-Beginner/Dice-Simulator.md @@ -0,0 +1,35 @@ +# Bin2Dec + +**Tier:** 1-Beginner + +The Dice is a simple cube shaped like object used in various board games such as snake- ladder, Ludo etc. +It is a simple cube which generates a random number when rolled by a user. A Dice rolling simulator is nothing but a computer model that can be created by a software program and it functions same as a normal dice in which user rolls a dice and a random number gets shown on the screen. + + +This challenge requires that the developer implementing it follow these +constraints: + +- Program should automatically declare a random number between 1-6 +- The pictures of the dice should change every time with respect to the number obtained from the randome function + +## User Stories + +- [ ] User can click a button to roll a dice +- [ ] User can repeat his turn when 6 comes +- [ ] User can view the dice with the number varying from 1 - 6 on it + +## Bonus features + +- [ ] User can be able to change number of dices + +## Useful links and resources + +[Binary number system](https://realpython.com/python-dice-roll/) +[Tkinter](https://docs.python.org/3/library/tkinter.html) + +## Example projects + +Try not to view this until you've developed your own solution: + +- [How to Create Dice Roll Simulation Using Python](https://www.youtube.com/watch?v=8QdBZH1h5H8) +- [Dice Rolling Simulator](https://www.youtube.com/watch?v=KxMQeK09d2k) diff --git a/README.md b/README.md index f6557617..c9912b08 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ required to complete them. | [Color Cycle](./Projects/1-Beginner/Color-Cycle-App.md) | Cycle a color value through incremental changes | 1-Beginner | | [Countdown Timer](./Projects/1-Beginner/Countdown-Timer-App.md) | Event Countdown timer | 1-Beginner | | [CSV2JSON App](./Projects/1-Beginner/CSV2JSON-App.md) | CSV to JSON converter | 1-Beginner | +| [DICE SIMULATOR App](./Projects/1-Beginner/Dice-Simulator.md) | DICE SIMULATOR |1-Beginner | | [Dollars to Cents](./Projects/1-Beginner/Dollars-To-Cents-App.md) | Convert dollars to cents | 1-Beginner | | [Dynamic CSS Variables](./Projects/1-Beginner/Dynamic-CSSVar-app.md) | Dynamically change CSS variable settings | 1-Beginner | | [First DB App](./Projects/1-Beginner/First-DB-App.md) | Your first Database app! | 1-Beginner |