import random
def afficher_ecran(ecran):
for ligne in ecran:
print(" ".join(ligne))
def initialiser_ecran():
ecran = [['💎']*5 for _ in range(5)]
bombes = random.sample(range(25), 20) # Choisir aléatoirement 23 positions pour les bombes
pierre_precieuse = random.choice([i for i in range(25) if i not in bombes]) # Choisir une position pour la pierre précieuse
for i in range(25):
if i in bombes:
ecran[i//5][i%5] = '💣' # Position de la bombe
elif i == pierre_precieuse:
ecran[i//5][i%5] = '💎' # Position de la pierre précieuse
return ecran
ecran = initialiser_ecran()
afficher_ecran(ecran)
print()
print()
print()
print("⚠️🚫 SAiYAN IMPORTANT NEWS 🚫⚠️")
print()
print()
print("🔮 Les prédictions du robot ne sont pas garanties à 100%. Ne les considérez pas comme une certitude absolue. HLIXGAMERS Prince prgrm")
To embed this program on your website, copy the following code and paste it into your website's HTML: