Rename

by roundabout, Monday, 29 April 2024, 11:02:46 (1714388566), pushed by roundabout, Monday, 29 April 2024, 11:04:07 (1714388647)

Author identity: vlad <vlad.muntoiu@gmail.com>

7b7b4c9caeaa91cb79b4f7c28370534e67fa2131

README.md

@@ -1,4 +1,4 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        # `KONSOLDLE`
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        # `tty-wordle`
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            A clone of the popular word-guessing game Wordle that runs in the terminal. For Linux, Windows and Macintosh
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -30,4 +30,4 @@ options:

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            # Other things
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        * You can press `^C` if you want to give up
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        * You can press `^C` if you want to give up
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

main.py

@@ -10,10 +10,10 @@ import argparse

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            colorama.init()
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        konsoldleLogo = col("K", "light_yellow", attrs=["bold"]) + col("O", "light_grey", attrs=["bold"]) + col("N", "light_green", attrs=["bold"]) + col("S", "light_green", attrs=["bold"]) + col("O", "light_grey", attrs=["bold"]) + col("L", "light_yellow", attrs=["bold"]) + col("D", "light_green", attrs=["bold"]) + col("L", "light_green", attrs=["bold"]) + col("E", "light_grey", attrs=["bold"])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        logo = col("K", "light_yellow", attrs=["bold"]) + col("O", "light_grey", attrs=["bold"]) + col("N", "light_green", attrs=["bold"]) + col("S", "light_green", attrs=["bold"]) + col("O", "light_grey", attrs=["bold"]) + col("L", "light_yellow", attrs=["bold"]) + col("D", "light_green", attrs=["bold"]) + col("L", "light_green", attrs=["bold"]) + col("E", "light_grey", attrs=["bold"])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        parser = argparse.ArgumentParser(prog="konsoldle", description="A Wordle for your console.")
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        parser = argparse.ArgumentParser(prog="tty-wordle", description="A Wordle for your console.")
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            parser.add_argument("-a", "--analyser", dest="analyser", action="store_true", help="add the analyser, a row of all found letters")
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            parser.add_argument("-p", "--placeholder", dest="placeholder", action="store_true", help="add a word placeholder")
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            parser.add_argument("-x", "--hard", dest="hard", action="store_true", help="enable hard Wordle: you must use all found letters in your guesses")
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -87,7 +87,7 @@ def getPlaceholder():

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            # Information
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        print(f"{ konsoldleLogo } {__version__} ({ col('konsoldle --help', 'light_blue') } for more information)")
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        print(f"{ logo } {__version__} ({ col('tty-wordle --help', 'light_blue') } for more information)")
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            print(f"Guess a {len(word)}-letter word")