diff --git a/ProblemSolving/gameProgs/rollerdice.py b/ProblemSolving/gameProgs/rollerdice.py new file mode 100644 index 0000000..361c40f --- /dev/null +++ b/ProblemSolving/gameProgs/rollerdice.py @@ -0,0 +1,21 @@ +#Roller dice program + +from random import randint + + + +player1 = randint(1,6) +print ("player1 chance",player1) + + + +player2 = randint(1,6) +print("player2 chance",player2) + +if player1 == player2: + print("draw") +elif player1 > player2: + print("player1 wins") +else: + print("player2 wins") +