Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions some_pigs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from random import randint

def one_round(total, strategy):
round = 0
while True:
value = randint(1,6)
round = round + value

if value == 1:
round = 0
print('your turn is over')
break

#build strategy logic and when to stop/keep rolling

return round