https://github.com/yohasebe/ruby-wordle
A set of ruby scripts to generate word-lists, solve Wordle and play Wordle
https://github.com/yohasebe/ruby-wordle
game ruby terminal-app vocabulary wordle
Last synced: about 1 year ago
JSON representation
A set of ruby scripts to generate word-lists, solve Wordle and play Wordle
- Host: GitHub
- URL: https://github.com/yohasebe/ruby-wordle
- Owner: yohasebe
- License: mit
- Created: 2022-01-30T05:39:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-02T01:31:55.000Z (over 4 years ago)
- Last Synced: 2024-10-05T08:47:54.669Z (over 1 year ago)
- Topics: game, ruby, terminal-app, vocabulary, wordle
- Language: Ruby
- Homepage:
- Size: 1.47 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ruby-Wordle
A set of ruby scripts to generate word-lists, solve Wordle, and play Wordle on the command line
⬜️⬜️⬜️⬜️⬜️ \
⬜️⬜️⬜️🟨🟨 \
⬜️🟩⬜️🟩⬜️ \
🟩🟩⬜️🟩🟩 \
🟩🟩🟩🟩🟩
----
### Installation
```
> gem install ruby-wordle
```
----
### Play Wordle
**Usage Example**
```plain-text
> ruby-wordle play
```

You can ask for help by typing "?↵" while playing. In the suggestion list, basic words consisting of 5 different letters are printed in red 🟥 while basic words having the same letters used more than once are printed in blue 🟦
----
### Wordle Solver
**Usage Example**
```plain-text
> ruby-wordle solver
```

In the result list, basic words consisting of 5 different letters are printed in red 🟥 while basic words having the same letters used more than once are printed in blue 🟦
----
### Word Lists
#### Word List Generator Script
🟢 `lib/ruby-wordle/script-filter.rb`
A ruby script to generate *n*-letter word lists (`word-list.txt` and `word-list-uniq.txt`)
The default *n* value is 5. Change `NUM_LETTERS` if necessary, and run the script as follows. A directory will be created automatically with the title having the number specified in the script (e.g. `word-lists/5-letters`, `word-lists/6-letters`) and resulting word lists will be stored in that directory.
----
#### Lists of English Words of 5 Letters (useful to solve Wordle)
🟡 `word-lists/5-letters/word-list.txt`
A list of five-letter words, generated from the original word list.
🟡 `word-lists/5-letters/word-list-uniq-letters.txt`
A list of five-letter words consisting of five different letters, generated from the original word list.
🟡 `word-lists/5-letters/word-list-basic.txt`
A list of five-letter words, generated from the basic word list.
🟡 `word-lists/5-letters/word-list-basic-uniq-letters.txt`
A list of five-letter words consisting of five different letters, generated from the basic word list.
----
#### Original/Basic Lists of English Words
⚪️ `word-lists/word-list-original.txt`
A large word list based on `words_alpha.txt` in [dwyl/english-words](https://github.com/dwyl/english-words), containing more than 370,000 items.
⚪️ `word-lists/word-list-basic.txt`
A smaller word list containing about 13,000 basic English words.
----
### Author
Yoichiro HASEBE
----
### License
MIT