Create a Python Wordle Clone With Rich (Summary)
Congratulations! You’ve built a feature-rich Wordle clone that you can play with yourself and share with all your friends—at least the ones who know how to run Python programs in the terminal.
Along the way, you’ve gotten familiar with Rich and learned how to use the library to add color and style to your terminal applications.
In this video course, you’ve learned to:
- Have a good strategy for iteratively creating a command-line application
- Use Rich’s console to create an attractive user interface in the terminal
- Read and validate user input
- Work with data represented in strings, lists, and dictionaries
- Work with data stored in text files
Next, have some fun challenging yourself to a few rounds of your Wordle clone! You may also look for ways to continue developing the game. Please share your experiences in the discussion section below.
If you’d like to build more command-line apps, then take these tutorials for a spin:
- 📰 Click and Python: Build Extensible and Composable CLI Apps
- 📰 Build a Command-Line To-Do App With Python and Typer
- 📰 Build a Site Connectivity Checker in Python
- 📰 Build Command-Line Interfaces With Python’s
argparse
- 📰 4 Techniques for Testing Python Command-Line (CLI) Apps
If you’d like to hear from the developer of Rich, then Real Python’s got you covered:
- 🎧 The Real Python Podcast Episode 80: Make Your Python App Interactive With a Text User Interface (TUI)
- 📰 Python Community Interview With Will McGugan
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
00:00 Summary. Congratulations, you’ve made it to the end of the course, and you’ve built a feature-rich Wordle clone that you can play with yourself and share with your friends—at least the ones who know how to run Python programs in the terminal. Along the way, you’ve got familiar with Rich and learned how to use the library to add color and style to your terminal applications. In this step-by-step project, you’ve learned how to have a good strategy for creating a command-line application; read and validate user input; work with data represented in strings, lists, and dictionaries; work with data stored in text files; and use Rich’s console to create an attractive user interface in the terminal.
00:43 Now that the hard work is done, relax and have some fun challenging yourself to a few rounds of your Wordle clone. We hope you found this course useful, and once you finish playing Wyrdl, we’ll see you again soon at realpython.com.
Become a Member to join the conversation.