Skip to content

seankeane/python-wordgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Wordgame

A simple Python-based word game similar to Wordle that game be played in the terminal and works on Unix-like operating systems.

A dictionary of 5-letter words is generated based on the words file in /usr/share/dict on Unix-like machines. From this dictionary, a 5-letter word is selected at random.

How To Play

Clone the repository and open directory with wordgame.py in terminal.

Run as follows:

python3 wordgame.py

The following instructions will show in terminal:

instructions

You can then enter your first guess and click Enter, which will return a list of the letters you have not yet guessed and a key showing if you matched any letters in the answer.

guess

You are allowed to keep guessing until you find the answer. Once you enter the correct answer, you will receive confirmation along with information about how long it took you to find the answer and how many guesses you entered:

solution

If you enter an invalid answer, you will be asked to guess again. Valid answers must be 5-letters long and be present on the words file.

validations

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages