# -*- coding: utf-8 -*-
"""
Created on Mon Apr 15 13:49:16 2019

@author: vmahout
"""
from random import randint


def Dessine_Pendu(step) :
    if (step==1) :
        print("   ┌─────┐    ")
        print("   │         ")
        print("   │        ")
        print("   │         ")
        print("   │       ")
        print("   │         ")
        print(" ┌─┴───────┐ ")
    elif(step==2):   
        print("   ┌─────┐    ")
        print("   │     ▓    ")
        print("   │        ")
        print("   │         ")
        print("   │      ")
        print("   │         ")
        print(" ┌─┴───────┐ ")
    elif(step==3):  
        print("   ┌─────┐    ")
        print("   │     ▓    ")
        print("   │    ═╬    ")
        print("   │          ")
        print("   │       ")
        print("   │         ")
        print(" ┌─┴───────┐ ")
    elif(step==4) :    
        print("   ┌─────┐    ")
        print("   │     ▓    ")
        print("   │    ═╬═    ")
        print("   │          ")
        print("   │       ")
        print("   │         ")
        print(" ┌─┴───────┐ ")
    
    elif(step==5) :
        print("   ┌─────┐    ")
        print("   │     ▓    ")
        print("   │    ═╬═    ")
        print("   │     ║     ")
        print("   │       ")
        print("   │         ")
        print(" ┌─┴───────┐ ")
 
    elif(step==6) :
        
        print("   ┌─────┐    ")
        print("   │     ▓    ")
        print("   │    ═╬═    ")
        print("   │     ║     ")
        print("   │    ╔╩   ")
        print("   │         ")
        print(" ┌─┴───────┐ ")
        
    elif(step==7) :
        print("   ┌─────┐    ")
        print("   │     ▓    ")
        print("   │    ═╬═    ")
        print("   │     ║     ")
        print("   │    ╔╩╗   ")
        print("   │         ")
        print(" ┌─┴───────┐ ")
        print(" │ PENDU !!│ ")
        print(" │ PERDU !!│ ")
        print(" └─────────┘ ")


def Mot_Hasard():
    N = 12529
    index = randint(1,N)
    with open("Dico_Pendu.txt", "r") as dico:
        for line in range(index) :
            mot_zard = dico.readline() 
    mot_zard = mot_zard[0:len(mot_zard)-1]
    return(mot_zard)