import random
import time
class LuckyJetBot:
def __init__(self, starting_balance, bet_amount, cashout_point, max_rounds):
self.balance = starting_balance # Solde initial
self.bet_amount = bet_amount # Mise par manche
self.cashout_point = cashout_point # Point de retrait
self.max_rounds = max_rounds # Nombre maximum de manches
self.round_number = 1 # Initialisation du compteur de manches
def generate_multiplier(self):
"""
Génère un multiplicateur fixe à partir des valeurs données.
"""
multipliers = [
3.14, 5.52, 12.70, 3.00, 1.36, 1.51, 1.16, 1.79, 3.01, 5.30, 2.83,
2.08, 1.09, 3.32, 1.27, 1.11, 2.53, 2.01, 4.93, 1.23, 2.02, 1.44,
1.30, 2.62, 4.61, 1.00, 4.84, 1.97, 1.59, 1.45, 1.88, 1.67, 4.55,
2.32, 1.68, 1.62, 2.80, 2.06, 4.67
]
return random.choice(multipliers)
def play_round(self):
"""
Simule une manche du jeu Lucky Jet avec un calcul des gains.
"""
print(f"=== Manche {self.round_number} ===")
self.balance -= self.bet_amount
print(f"Mise : {self.bet_amount:.2f} | Solde restant : {self.balance:.2f} unités.")
multiplier = self.generate_multiplier()
print(f"Multiplicateur obtenu : {multiplier}x")
if multiplier >= self.cashout_point:
winnings = self.bet_amount * self.cashout_point
self.balance += winnings
print(f"Encaissement réussi à {self.cashout_point}x ! Gain : {winnings:.2f} unités.")
else:
print("Crash avant l'encaissement. Perte de la mise.")
print(f"Solde actuel : {self.balance:.2f} unités.\n")
self.round_number += 1
def play_game(self):
"""
Joue une partie complète de Lucky Jet.
"""
print("=== Simulation de Lucky Jet - Bot ===")
print(f"Solde initial : {self.balance:.2f} unités\n")
while self.balance >= self.bet_amount and self.round_number <= self.max_rounds:
self.play_round()
print("=== Fin de la simulation ===")
print(f"Solde final : {self.balance:.2f} unités.")
if self.balance > starting_balance:
print(f"Bravo ! Vous avez gagné {self.balance - starting_balance:.2f} unités !")
else:
print(f"Dommage, vous avez perdu {starting_balance - self.balance:.2f} unités.")
# Paramètres du bot Lucky Jet
starting_balance = 100.0 # Solde initial
bet_amount = 5.0 # Mise par manche
cashout_point = 2.0 # Point de retrait (cashout)
max_rounds = 10 # Nombre maximum de manches
# Création du bot et démarrage du jeu
lucky_jet_bot = LuckyJetBot(starting_balance, bet_amount, cashout_point, max_rounds)
lucky_jet_bot.play_game()
To embed this program on your website, copy the following code and paste it into your website's HTML: