Skip to content

Commit c0c0f69

Browse files
committed
changes made
1 parent 9690d18 commit c0c0f69

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

PyGamesScripts/Rolling Dice/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Rolling a dice
2+
Rolling dice Game is a python program i.e, developed in python programming language using random module and some user inputs.
3+
4+
### About the game
5+
- It's a basic python program which asks the user to enter a number from 1 to 6.The user have to enter the number twice.If sum of the numbers is divisible by 2 then the user will win the game else will lost the game..
6+
7+
### How to play?
8+
- Just run the program and enter any number from 1 to 6.
9+
- According to the condition the user will get a message of winning or loosisng the game..
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import random
2+
die1 = int(input("Enter a value from 1 to 6:"))
3+
4+
die2 = int(input("Enter a value from 1 to 6:"))
5+
6+
print(die1, die2)
7+
8+
print(die1 + die2)
9+
10+
if (die1 + die2) %2==0:
11+
print("You win!")
12+
13+
else:
14+
print("you lost")
15+

0 commit comments

Comments
 (0)