import random
def gates_of_olympus_sim(num_games=1000):
# Olası çarpanlar ve olasılıkları (örnek değerler, toplamı 1 olmalı)
possible_multipliers = [2, 3, 5, 8, 10, 15, 25, 50, 100, 250, 500, 1000]
multiplier_weights = [0.3, 0.25, 0.15, 0.1, 0.08, 0.04, 0.025, 0.02, 0.015, 0.005, 0.004, 0.001]
results = []
thousand_x_count = 0
combo_counter = 0
max_combo = 0
for i in range(num_games):
multiplier = random.choices(possible_multipliers, weights=multiplier_weights, k=1)[0]
results.append(multiplier)
# 1000x yakalandıysa kombo artır
if multiplier == 1000:
thousand_x_count += 1
combo_counter += 1
else:
if combo_counter > max_combo:
max_combo = combo_counter
combo_counter = 0
# Son turda biten en uzun kombo kontrolü
if combo_counter > max_combo:
max_combo = combo_counter
print(f"{num_games} oyunda toplam {thousand_x_count} defa 1000x çarpan geldi.")
print(f"En uzun 1000x kombo serisi: {max_combo}")
# İsterseniz tüm sonuçları döndürebilirsiniz
return results
if __name__ == "__main__":
gates_of_olympus_sim()