Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sammylupt/wordlet
Wordlet is a command-line clone of Wordle, written in Rust
https://github.com/sammylupt/wordlet
rust-lang wordle
Last synced: 9 days ago
JSON representation
Wordlet is a command-line clone of Wordle, written in Rust
- Host: GitHub
- URL: https://github.com/sammylupt/wordlet
- Owner: sammylupt
- License: other
- Created: 2022-01-21T01:42:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-22T23:09:17.000Z (almost 3 years ago)
- Last Synced: 2024-08-02T06:24:48.424Z (3 months ago)
- Topics: rust-lang, wordle
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 54
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Wordlet
Wordlet is a command line clone of
[Wordle](https://www.powerlanguage.co.uk/wordle/), written in Rust.![gameplay](https://user-images.githubusercontent.com/3178471/150548930-9dab1e11-2997-48da-af33-6e3386017a50.gif)
## 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
Building the app locally requires Rust 1.58 or higher.
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](https://github.com/cpcloud/minesweep-rs) and
[Battleship](https://github.com/deepu105/battleship-rs). Both of those links
came from the [tui documentation](https://github.com/fdehau/tui-rs).## Etc
- No rights reserved; use this code for whatever.
- I have no connection to Wordle or its author.
- [My twitter profile is here](https://twitter.com/scottluptowski)