Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def apuesta(balance, base_bet):
- chance = 90
- bet_amount = balance / 1000000
- for _ in range(10):
- random_chance = random.randint(1, 100)
- if random_chance <= chance:
- # Gana
- print(f'Ganaste {bet_amount} unidades.')
- break
- else:
- # Pierde
- print(f'Perdiste {bet_amount} unidades.')
- if _ < 5:
- base_bet *= 10 # Incrementa la base bet para la max bet
- else:
- losses = 0
- for j in range(5):
- random_chance = random.randint(1, 100)
- if random_chance > chance:
- losses += 1
- if losses >= 2:
- base_bet *= 10 # Incrementa la base bet para la max bet
- bet_amount = base_bet
- # Ejemplo de uso
- balance = 1000000 # Puedes ajustar esto según tu saldo inicial
- base_bet = balance / 1000000
- apuesta(balance, base_bet)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement