Skip to content

IvanPedroza/Wordle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordle Puzzle Game

License: MIT Tests Test Coverage

A text-based Python implementation of the popular Wordle puzzle game. Players attempt to guess a hidden five-letter word within six tries. After each guess, the game provides immediate visual feedback:

  • Green: Correct letter in the correct position.
  • Yellow: Correct letter in the wrong position.
  • Default: Letter not in the word.

Quick Start

Follow these instructions to set up and play the game on your local machine.

Prerequisites

Note for macOS users: Python is no longer pre-installed on macOS Catalina and later versions. Please install Python manually.

Installation & Running the Game

  1. Clone this repository:
git clone https://github.com/IvanPedroza/Wordle.git
cd Wordle
  1. Run the game:
python wordle.py

Optionally, specify your own target word (must be 5 letters):

python wordle.py MYWORD

Replace MYWORD with your custom word.

Gameplay

  • Start the game and enter your guesses when prompted.
  • Receive color-coded feedback for each letter:
    • Green: Letter is correctly placed.
    • Yellow: Letter exists but is incorrectly placed.
    • Default: Letter is not part of the word.
  • You have 6 attempts to guess correctly.
  • After your attempts:
    • Success: A congratulatory message shows the number of attempts.
    • Failure: The correct word is revealed.

Customizing the Word Bank

The default word bank uses a local text file (Scrabble Words.txt). For expanded or dynamic word banks, consider integrating:

This can provide more variety and enhance gameplay.

License

This project is distributed under the MIT License.

Acknowledgments

Inspired by the original Wordle puzzle game by The New York Times.

Enjoy playing!

About

Python version of the NYT Wordle puzzle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages