
# Créé par quent, le 02/05/2026 en Python 3.7
import random

def effacer():
    for _ in range(10):
        print("")

mots = {
"Fortnite": "construction rapide",
"Minecraft": "creuser",
"Call of Duty": "respawn",
"FIFA": "licence",
"Grand Theft Auto": "illegalite",
"League of Legends": "lanes",
"Valorant": "agents",
"Among Us": "déduction",
"Roblox": "scripts",
"The Legend of Zelda": "relique",
"Super Mario": "plombier",
"Pokemon": "capture",
"Clash Royale": "arene",
"Clash of Clans": "amelioration",
"Apex Legends": "balise",
"Overwatch": "ultime",
"Rocket League": "boost",
"The Sims": "besoins",
"Animal Crossing": "dette",
"Red Dead Redemption": "honneur",
"Elden Ring": "runes",
"Dark Souls": "feu",
"Cyberpunk 2077": "implants",
"Assassin’s Creed": "capuche",
"Far Cry": "avant poste",
"Battlefield": "vehicules",
"Rainbow Six Siege": "breche",
"Counter-Strike": "economie",
"Doom": "arsenal",
"Resident Evil": "virus",
"Silent Hill": "brouillard",
"Dead by Daylight": "generateurs",
"Subnautica": "profondeur",
"No Man’s Sky": "procedural",
"Starfield": "constellation",
"The Witcher": "contrat",
"Skyrim": "thu'um",
"Fallout": "abri",
"Horizon Zero Dawn": "carcasses",
"God of War": "pantheon",
"Uncharted": "expedition",
"Tomb Raider": "artefacts",
"Portal": "tests",
"Half-Life": "resonance",
"Team Fortress 2": "mercenaires",
"Splatoon": "territoire",
"Street Fighter": "combo",
"Mortal Kombat": "execution",
"Tekken": "enchainement",
"Gran Turismo": "simulation"
}

effacer()
print("- UNDERCOVER -")
n_j = int(input("Nb joueurs? "))
n_u = int(input("Nb undercover? "))

cles = list(mots.keys())
i_mot = random.randint(0, len(cles)-1)
mot_c = cles[i_mot]
mot_u = mots[mot_c]

roles = ["C"]*(n_j - n_u) + ["U"]*n_u

melange = []
while len(roles) > 0:
    idx = random.randint(0, len(roles)-1)
    melange.append(roles.pop(idx))

roles = melange

for i in range(n_j):
    effacer()
    input("J" + str(i+1) + " : EXE pr voir")

    r = roles[i]
    print("----------------")
    if r == "C":
        print("Civil: " + mot_c)
        from time import sleep; sleep(2)
    elif r == "U":
        print("Imposteur: " + mot_u)
        from time import sleep; sleep(2)

print("\n"*10)

