Skip to content

Commit 23fc271

Browse files
Merge pull request #2804 from avinashkranjan/deepsource-transform-5a680c36
format code with autopep8
2 parents 17a0d0e + cdb5663 commit 23fc271

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dice Rolling Game/Dice_Rolling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import random
22

3+
34
def roll_dice():
45
return random.randint(1, 6)
56

7+
68
def ai_roll():
79
return roll_dice()
810

11+
912
def main():
1013
print("Welcome to Dice Rolling AI!")
1114

@@ -28,5 +31,6 @@ def main():
2831
else:
2932
print("It's a tie!")
3033

34+
3135
if __name__ == "__main__":
3236
main()

0 commit comments

Comments
 (0)