Skip to content

Instantly share code, notes, and snippets.

View Mohamed2del's full-sized avatar
💭
WE ARE IN END GAME NOW

Mohamed adel mohamed Mohamed2del

💭
WE ARE IN END GAME NOW
View GitHub Profile
@Mohamed2del
Mohamed2del / Empire State Building bet
Created October 19, 2018 21:45
In the Empire State Building bet, your next move depends on the number of eyes you throw with the dice.
# Numpy is imported, seed is set
# Starting step
step = 50
# Roll the dice
dice = np.random.randint(1,7)
# Finish the control construct
if dice <= 2 :
step = step - 1
elif dice > 2 and dice < 6 :
step= step + 1