Wordlet - a command line clone of Wordle, written in Rust.

Overview

Wordlet

Wordlet is a command line clone of Wordle, written in Rust.

gameplay

Installation

$ cargo install wordlet

Usage

After installation, start Wordlet by typing wordlet in your terminal. Unlike Wordle, you can play at any time, and you can play multiple times per day. The game uses the same dictionary as Wordle.

Valid options are:

  • --difficulty, default is "easy". Can also be "hard".
  • --theme, default is "dark". Can also be "light"

You quit the game by pressing escape.

Nerd stuff

This was an exercise in writing a fully functional Rust program. There are probably better and more performant ways to implement the Wordlet algorithm but I purposely did not look at how Wordle was implemented.

I learned a lot (and lifted some code) from these other games: Minesweeper and Battleship. Both of those links came from the tui documentation.

Etc

You might also like...
Command line tool for cheap and efficient email automation written in Rust

Pigeon Pigeon is a command line tool for automating your email workflow in a cheap and efficient way. Utilize your most efficient dev tools you are al

A silly program written in Rust to output nonsensical sentences in the command line interface.

A silly program written in Rust to output nonsensical sentences in the command line interface.

A simplified recreation of the command-line utility grep written in Rust.

smolgrep A simplified recreation of the command-line utility grep written in Rust. Download and run Download Rust On Mac/Linux Open a terminal and ent

Xsv - A fast CSV command line toolkit written in Rust.

xsv is a command line program for indexing, slicing, analyzing, splitting and joining CSV files. Commands should be simple, fast and composable: Simpl

This is a simple command line application to convert bibtex to json written in Rust and Python

bibtex-to-json This is a simple command line application to convert bibtex to json written in Rust and Python. Why? To enable you to convert very big

A standalone Command Line Interface debugging tool for The Witcher 3 written in Rust
A standalone Command Line Interface debugging tool for The Witcher 3 written in Rust

A standalone Command Line Interface debugging tool for The Witcher 3 written in Rust. This tool is intended for Witcher 3 modders who make mainly scri

A command line tool, manage your hundreds of repository, written with Rust

A command line tool, manage your hundreds of repository, written with Rust

A blazing fast command line license generator for your open source projects written in Rust🚀
A blazing fast command line license generator for your open source projects written in Rust🚀

Overview This is a blazing fast ⚡ , command line license generator for your open source projects written in Rust. I know that GitHub

A command line interface for trash written in Rust (WIP)

trashctl A command line interface for trash Features Add file to trash List files Permanently delete a file Restore file Empty the trash Documentation

Comments
  • wordlet fails to compile

    wordlet fails to compile

    mostly looks like incomplete invocations of the format! macro.

    $ cargo install wordlet
    ...
       Compiling wordlet v0.2.0
    error: there is no argument named `answer`
       --> /home/crinklywrappr/.cargo/registry/src/github.com-1ecc6299db9ec823/wordlet-0.2.0/src/ui.rs:249:49
        |
    249 |             format!("Game over! The answer was '{answer}'. Press any key to exit.")
        |                                                 ^^^^^^^^
    
    error: there is no argument named `letter`
       --> /home/crinklywrappr/.cargo/registry/src/github.com-1ecc6299db9ec823/wordlet-0.2.0/src/ui.rs:253:64
        |
    253 |                 format!("Does not include the required letter '{letter}'")
        |                                                                ^^^^^^^^
    
    error: there is no argument named `ch`
       --> /home/crinklywrappr/.cargo/registry/src/github.com-1ecc6299db9ec823/wordlet-0.2.0/src/ui.rs:260:35
        |
    260 |                     _ => format!("{ch}th"),
        |                                   ^^^^
    
    error: there is no argument named `number`
       --> /home/crinklywrappr/.cargo/registry/src/github.com-1ecc6299db9ec823/wordlet-0.2.0/src/ui.rs:262:30
        |
    262 |                 format!("The {number} letter must be '{ch}'")
        |                              ^^^^^^^^
    
    error: there is no argument named `ch`
       --> /home/crinklywrappr/.cargo/registry/src/github.com-1ecc6299db9ec823/wordlet-0.2.0/src/ui.rs:262:55
        |
    262 |                 format!("The {number} letter must be '{ch}'")
        |                                                       ^^^^
    
    error: there is no argument named `le`
       --> /home/crinklywrappr/.cargo/registry/src/github.com-1ecc6299db9ec823/wordlet-0.2.0/src/ui.rs:349:26
        |
    349 |         true => format!("{le} "),
        |                          ^^^^
    
    error: failed to compile `wordlet v0.2.0`, intermediate artifacts can be found at `/tmp/cargo-installO2YmIV`
    
    Caused by:
      could not compile `wordlet` due to 6 previous errors
    Exception: cargo exited with 101
    [tty 19], line 1: cargo install wordlet
    
    opened by crinklywrappr 4
Owner
Scott Luptowski
Scott Luptowski
This is a command line port of the game Wordle in Rust

Wordle.rs 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

Brock Herion 5 Apr 8, 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 clone of linux cal command, using rust programming language

CLI Calendar command What the project does This command was inspired by Linux Cal command that shows the current month calendar as output (by default)

Mohamed Djoudi Benarfa 2 Nov 16, 2022
xcp is a (partial) clone of the Unix cp command. It is not intended as a full replacement

xcp is a (partial) clone of the Unix cp command. It is not intended as a full replacement, but as a companion utility with some more user-friendly feedback and some optimisations that make sense under certain tasks (see below).

Steve Smith 310 Jan 5, 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
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
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
Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're working with files or directories, this tool simplifies common file operations with ease.

Rust FileOps Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're w

Harikesh Ranjan Sinha 5 May 2, 2024
⚡️ 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 ??

Arthur Henrique 36 Jan 1, 2023
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

Atanas Yankov 1.9k Jan 3, 2023