Giter Club home page Giter Club logo

wordle's Introduction

Wordle Clone Project

This project is a clone of the popular word-guessing game Wordle. It is a console-based application where players have six attempts to guess a randomly selected word. Each guess provides feedback in the form of colored tiles, indicating when letters match or occupy the correct position.

Figure 1

How to Play

  • Run the application.
  • Enter your guess (a valid 5-letter word).
  • Review the color-coded feedback:
    • Green: Letter is in the word and in the correct position.
    • Yellow: Letter is in the word but in the wrong position.
    • Black: Letter is not in the word in any spot.
  • Use the feedback to make your next guess.
  • Try to guess the word in six attempts or fewer.

Figure 1

Features

  • Console-Based Interface: Easy to use and navigate.

Figure 1

  • Historical Tracking: Maintain a detailed record of previous games, including statistics on performance over time.

Figure 1

  • Color Feedback: Receive immediate, color-based hints after each guess to help refine subsequent attempts.

Figure 1

Figure 1

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them:

  • C++ Compiler (GCC recommended)
  • Make (optional for building)
  • Git

Installing and Running

Follow these steps to set up and run the Wordle game in your development environment.

  1. Clone the repository: Clone the Wordle repository from GitHub to your local machine.

    git clone https://github.com/napronald/Wordle.git
  2. Navigate to the directory: Change into the directory where the Wordle game code is located.

    cd Wordle
  3. Compile the project: Compile the main.cpp file into an executable named Wordle. Make sure you have a C++ compiler like g++ installed.

    g++ -o Wordle main.cpp
  4. Run the game with command-line arguments: Run the compiled Wordle game. The game expects a command-line argument representing the desired word length (4, 5, 6, or 7). For example, to play with 5-letter words:

    ./Wordle 5 5-letter-words.txt 5-allowed-guesses.txt

    Replace 5, 5-letter-words.txt, and 5-allowed-guesses.txt with the desired word length (4, 5, 6, or 7).

  5. Running Keyboard Interface Concurrently: If you wish to have a keyboard interface running concurrently with the main game, navigate to the MyWordle directory in a new terminal window and compile the keyboard interface:

    cd path/to/MyWordle
    g++ -o KeyboardInterface keyboard.cpp

    Then, run the KeyboardInterface program:

    ./KeyboardInterface

    This will allow you to interact with the Wordle game using a keyboard interface in real time.

wordle's People

Contributors

napronald avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.