This is a command line port of the game Wordle in Rust

Overview

Wordle.rs

Wordle.rs Screenshot

Welcome to Wordle.rs! This is a command line port of the game Wordle in Rust. I built this in order to get more familiar with programming in Rust.

Features

  • Totally command line based

  • Different word everytime you play

  • Color highlighted cells

    • Blue for empty
    • White for incorrect letter
    • Yellow for correct letter, but incorrect placement
    • Green for correct letter and placement

Things Still to Add/Fix

  • Add validation on if a guess is an actual word or a bunch of random letters
  • Let users choose number of guesses and/or word length
  • Cleanup main game logic
  • Handle upper vs lower case
  • Handle any weird character input
  • Scores/streaks for players
  • Display incorrect letter guesses

Setup

To run Wordle.rs, the first thing you'll want to do is clone the repository and run cargo build to install the necessary dependencies. Then, you can use cargo run or ./target/debug/wordle_rs to play!

Note: you do need to have the Rust compiler installed to run this


Support

If you think this project is neat and wanna see more, feel free to drop a follow on Twitter or GitHub. You can also buy me a coffee if you're feeling like fueling my coding/caffeine addiction!

Twitter GitHub Buy Me A Coffee

You might also like...
A full featured, fast Command Line Argument Parser for Rust

clap Command Line Argument Parser for Rust It is a simple-to-use, efficient, and full-featured library for parsing command line arguments and subcomma

Docopt for Rust (command line argument parser).

THIS CRATE IS UNMAINTAINED This crate is unlikely to see significant future evolution. The primary reason to choose this crate for a new project is if

A command line progress reporting library for Rust
A command line progress reporting library for Rust

indicatif Documentation A Rust library for indicating progress in command line applications to users. This currently primarily provides progress bars

Low-level Rust library for implementing terminal command line interface, like in embedded systems.

Terminal CLI Need to build an interactive command prompt, with commands, properties and with full autocomplete? This is for you. Example, output only

⚡️ Lightning-fast and minimal calendar command line. Written in Rust 🦀
⚡️ Lightning-fast and minimal calendar command line. Written in Rust 🦀

⚡️ Lightning-fast and minimal calendar command line. It's similar to cal. Written in Rust 🦀

A small command-line application to view images from the terminal written in Rust.
A small command-line application to view images from the terminal written in Rust.

A small command-line application to view images from the terminal written in Rust. It is basically the front-end of viuer

A tool crate to quickly build rust command line application.

Falsework A tool crate to quickly build rust command line application.

colorStyle is a library of styles for command-line text write in Rust.
colorStyle is a library of styles for command-line text write in Rust.

Colorstyle colorStyle is a library of styles for command-line text. Inspired by flylog/colorstyle (golang) Example let text = colorstyle::green("gre

Rust command line utility to quickly display useful secrets in a Kubernetes namespace
Rust command line utility to quickly display useful secrets in a Kubernetes namespace

kube-secrets This is a command line utility for quickly looking at secrets in a Kubernetes namespace that are typically looked at by humans. It specif

Comments
  • Brock/structure fixes

    Brock/structure fixes

    Change list

    • Extracted game logic into separate modules
      • game.rs handles main game logic
      • board.rs handles the board and rendering
      • gameplay.rs handles user guessing and validation
      • utils.rs contains helpers for importing words
    • Added logic to handle uppercase vs lowercase guesses
    opened by BrockHerion 0
  • Dev

    Dev

    Basic, working version of Wordle in Rust as a CLI game. Basic features

    • Random five-letter word
    • Six guesses to get it right
    • Color-coded board
      • Blue for empty
      • Gray for the wrong letter
      • Yellow for right letter, wrong place
      • Green for right letter, right place
    • Bad input validation (too long, too short, etc)
    opened by BrockHerion 0
Releases(v1.1.0)
  • v1.1.0(Feb 2, 2022)

    What's Changed

    • Replit Upload by @BrockHerion in https://github.com/BrockHerion/wordle_rs/pull/2
    • Merge pull request #2 from BrockHerion/main by @BrockHerion in https://github.com/BrockHerion/wordle_rs/pull/3
    • Brock/structure fixes by @BrockHerion in https://github.com/BrockHerion/wordle_rs/pull/4
    • Dev by @BrockHerion in https://github.com/BrockHerion/wordle_rs/pull/5

    Full Changelog: https://github.com/BrockHerion/wordle_rs/compare/v1.0.0...v1.1.0

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Jan 25, 2022)

    What's Changed

    • Dev by @BrockHerion in https://github.com/BrockHerion/wordle_rs/pull/1

    New Contributors

    • @BrockHerion made their first contribution in https://github.com/BrockHerion/wordle_rs/pull/1

    Full Changelog: https://github.com/BrockHerion/wordle_rs/commits/v1.0.0

    Source code(tar.gz)
    Source code(zip)
Owner
Brock Herion
Full-stack developer who works in C#, NextJS, and Typescript. Proud supporter of our glorious Galactic Empire!
Brock Herion
Wordlet - a command line clone of Wordle, written in Rust.

Wordlet Wordlet is a command line clone of Wordle, written in Rust. Installation $ cargo install wordlet Usage After installation, start Wordlet by ty

Scott Luptowski 55 Oct 22, 2022
Small command-line tool to switch monitor inputs from command line

swmon Small command-line tool to switch monitor inputs from command line Installation git clone https://github.com/cr1901/swmon cargo install --path .

William D. Jones 5 Aug 20, 2022
A Rust port of the command line program playing with the cutscenes files (USM) from Genshin Impact.

GI-cutscenes : Rust Remix A command line program playing with the cutscene files (USM) from Genshin Impact, reimplemented in Rust. Much like its origi

Lymkwi 5 Nov 6, 2022
A command-line tool to easily kill processes running on a specified port.

killport killport is a command-line utility for killing processes listening on specific ports. It's designed to be simple, fast, and effective. The to

Francisco Jiménez Cabrera 6 Mar 29, 2023
Command-line HTTP client for sending a POST request to specified URI on each stdin line.

line2httppost Simple tool to read lines from stdin and post each line as separate POST request to a specified URL (TCP connection is reused though). G

Vitaly Shukela 3 Jan 3, 2023
A simple cli tool to help with wordle in hard mode

Wordking A simple cli tool to help with wordle in hard mode. Usage Run wordking cargo run Wordking will ask for your guesses thus far. Provide your gu

Stephen Spalding 2 Feb 1, 2022
Pink is a command-line tool inspired by the Unix man command.

Pink is a command-line tool inspired by the Unix man command. It displays custom-formatted text pages in the terminal using a subset of HTML-like tags.

null 3 Nov 2, 2023
Dog command for *nix systems, Rust port of dog.

dog-rs Dog command for *nix systems, Rust port of dog. Because there is a cat command, should be a dog command too. It was written completely using VS

Juanjo Salvador 2 Sep 29, 2021
FTL Rust Demangler is a command-line tool for demangling symbol names that are mangled with the Rust convention

FTL Rust Demangler is a command-line tool for demangling symbol names that are mangled with the Rust convention. It takes a mangled symbol name as input and returns the demangled name

timetravel3 7 Mar 30, 2023
Checkline: checkbox line picker for stdin line input

checkline is a Unix command line interface (CLI) terminal user interface (TUI) that prompts you to check each line of stdin, to pick each line to output to stdout

SixArm 4 Dec 4, 2022