Open melikyanarmina opened 7 months ago
This means that after setting the "goal" number, the player needs to roll again to determine the outcome of the game. The game continues until the player either rolls the "goal" number and wins or rolls a 7 and loses.
Thank you dear @areviksol , I updated, I hope it works appropriate now
everything works, great work !)
You mean that it need to be repeated until it become 7, like this
import random
def roll_dice(): return random.randint(1, 6) + random.randint(1, 6)
dice_a = random.randint(1, 6) dice_b = random.randint(1, 6) first_roll = dice_a + dice_b print(f"First roll: {first_roll}")
if first_roll == 7 or first_roll == 11: print("You win") elif first_roll in (2, 3, 12): print("Casino wins") else: print(f"Goal number is: {first_roll}")
_Originally posted by @areviksol in https://github.com/melikyanarmina/mini_project2/issues/1#issuecomment-1943823821_