Skip to content

Latest commit

 

History

History
86 lines (56 loc) · 3.55 KB

README.md

File metadata and controls

86 lines (56 loc) · 3.55 KB

Wordle

About The Project

Built With

python_badge openai_badge

VideoForWordle.mov

Wordle is a Python-based implementation of the popular word-guessing game. In this version, the user attempts to guess a randomly generated word, with the length and difficulty determined by the selected mode. The game utilizes the OpenAI GPT-3.5 API to dynamically generate random words, ensuring a fresh challenge with each playthrough.

Features

•	Difficulty Modes: Choose between Easy, Hard, or Challenge mode, which affects the word length and the number of attempts available.
•	Dynamic Word Generation: Leverages the OpenAI GPT-3.5 API to generate a random word each time, ensuring no two games are the same.
•	Stylized Output: Uses the colorama library to provide colored and styled text output in the terminal, enhancing the user experience.
•	Hints: Players can request hints if they get stuck, making the game accessible for all skill levels.
•	Feedback System: The game provides immediate feedback on each guess by highlighting letters in different colors:
•	Green for correct letters in the right position.
•	Yellow for correct letters in the wrong position.
•	Red for incorrect letters.

How to Play

1.	Choose a Difficulty Mode: Select between Easy (4-letter words), Hard (5-letter words), or Challenge (6-letter words).
2.	Guess the Word: Try to guess the word within the allowed number of attempts, with feedback provided after each guess.
3.	Use Hints if Needed: You can request a hint by typing y, but hints are limited based on the difficulty level.
4.	Win or Lose: If you guess the word within the allowed attempts, you win! If not, the correct word is revealed.

This project combines Python programming, API integration, and terminal-based game design, providing a fun and educational experience for developers and players alike.

(back to top)

Getting Started

Installation

  1. Get a OpenAI API Key at (https://platform.openai.com/api-keys)

  2. Clone the Repo or simply Download the Python File

    git clone https://github.com/bryanrg22/Wordle.git
  3. Install Colorama through the Terminal

    pip install colorama
  4. Install Openai through the Terminal

    pip install openai
  5. Enter your API in wordle.py on Line 11

    openai.api_key = 'ENTER YOUR API'

(back to top)

Contact Me

linkedin_badge gmail_badge github_badge

Bryan Ramirez-Gonzalez - Add me on Linkedin! - [email protected] Project Link: https://github.com/bryanrg22/Wordle.git

(back to top)