Wordle in command line
you can wide the dictionary if you want 😉  


    from os import system, name
    import re
    import random
    
    # define our clear function
    def clear():
      
        if name == 'nt': # for windows
            system('cls')
        else: # for mac and linux(here, os.name is 'posix')
            system('clear')
    
    #show the rules of the game and descripcion
    def menu():
    
        print("""
        __        __            _ _         ____
        \ \      / /__  _ __ __| | | ___   / ___| __ _ _ __ ___   ___
         \ \ /\ / / _ \| '__/ _` | |/ _ \ | |  _ / _` | '_ ` _ \ / _ \\
          \ V  V / (_) | | | (_| | |  __/ | |_| | (_| | | | | | |  __/
           \_/\_/ \___/|_|  \__,_|_|\___|  \____|\__,_|_| |_| |_|\___|
        Try to guess the word, we lend you some clues when you assert.
        After each guess, the color of the tiles will change to show how close your guess was to the word 
        """)
    
    def show_words(array_words,guessword):
        
        for word in array_words:
            list_blocks = ""
            for i,letter in enumerate(word):
                if letter in guessword:
                    if word[i] == guessword[i]:
                        block = "🟩"
                    else:
                        block = "🟨" 
                else:
                    block = "🔲" 
    
                list_blocks += block
            
            print(word.replace("", " ")[1: -1])
            print(list_blocks)
    
    
    if __name__ == "__main__":
        dictionary = ["ninja","great","witch","grown","space","stone","earth","extra","entry","slice","shine","sharp","eager","ebony","penny"]
        guessword = random.choice(dictionary)
        lenword = len(guessword)
        word_guessed = False
        array_words = []
    
    
    while word_guessed == False:
        clear()
        menu()
        show_words(array_words,guessword) 
        try:
            word = input(f"Hit some word of {lenword} length here:")
            
            if len(word) != lenword:
                raise ValueError(f"it must be {lenword} length word!")  
            elif not re.search(r"[a-zA-Z]{"+str(lenword)+"}",word):
                raise ValueError(f"it must be only alfabetical characters!")  
            elif word == guessword:
                print(word.replace("", " ")[1: -1])
                print("🟩🟩🟩🟩🟩")
                print("Awesome! 🎉🎉🎉")
                word_guessed = True
            else:
                array_words.append(word)
                
        except ValueError as e:
            print(e)
            a = input("Press 'enter' to continue")