Giter Site home page Giter Site logo

wordle's Introduction

wordle in your terminal

download docs

Wordle

Wordle is a word guessing game. Each day you have to guess a new word. You have 6 attempts and each attempt you make reveals some information.

Example

Usage

# play the daily wordle game
wordle

# play the given day (eg if you missed a day)
wordle day <day-number>

# play the given date
wordle date <year-month-day>

# play a random game
wordle random

# play a custom word
wordle custom <word>

Install

cargo install cl-wordle --locked

Demo

Demo

wordle's People

Contributors

conradludgate avatar afh avatar ci4ic4 avatar

Stargazers

Zsolt Pasztori avatar David Shepard avatar Matt Thornback avatar Tom avatar Jordan Callicoat avatar Bren M avatar Brody avatar 道寻常 avatar Gianni Hong avatar Tim Rudenko avatar  avatar manuel.cruanes avatar Yin Zhang avatar Eli avatar Hiyasame avatar GAURAV avatar mochaccino avatar  avatar Andrejs Agejevs avatar Tim Dalton avatar  avatar  avatar Rhi avatar Brian avatar Uttaran Das avatar Abhay Garg avatar  avatar Smiles Davis avatar Paul avatar StepBroBD avatar  avatar Gimbles avatar  avatar Jeremy Winter avatar Andrea Cantarutti avatar James Lawton avatar Sunil Subramanya avatar Injoon Oh avatar Marcin Zabłocki avatar Tasmo avatar Francesco Minnocci avatar Constantin GIERCZAK--GALLE avatar Daniel Hoherd avatar Andrew Numrich avatar Rinat Valiullov avatar Esther Hoffman avatar Bob Walker avatar Victor Passos avatar Afonso Jorge Ramos avatar Joye Lin avatar Azizbek Nomonjonov avatar Ilias Woithe avatar Jamie Sparks avatar  avatar Rob Garrison avatar Hipy Cas avatar  avatar Brandon Cruz avatar Anton Österberg avatar Billy Messenger avatar Abdulrhman Alkhodiry avatar Ivan Zvonimir Horvat avatar yusuke suzuki avatar Ellie Huxtable avatar Dr George Atkinson avatar Giorgio Pomettini avatar Danilo Spinella avatar Shabbir Hasan avatar  avatar Timothy Vincent avatar Daniel Tolentino avatar Hendrik Sollich avatar Noam Teyssier avatar Andrew Muhs avatar Taupiqueur avatar Nitzan Zada avatar Marenda SA avatar  avatar  avatar Ciro Lo Sapio avatar  Bəxtiyar avatar Andrea Stagi avatar Vishwajeet Raj avatar Luciano Mammino avatar Wasawat Somno avatar Grégoire Henry avatar Eduardo Stuart avatar Qichao Lan avatar  avatar Abhijit Nathwani avatar Harshit Choudhary avatar Sal Sal avatar 爱可可-爱生活 avatar Ting Shao avatar Sebastian Thiel avatar Sam Komesarook avatar Kenny avatar Dan Palmer avatar deadmeu avatar Rigas Papathanasopoulos avatar

Watchers

 avatar  avatar Constantin GIERCZAK--GALLE avatar Hipy Cas avatar

wordle's Issues

a better Readme file

Could you improve your Readme file?
What is wordle?
How to play it? - meaning, its rules and such...

Inconsistent NYT wordlist

While sharing my results with friends I noticed that their word of the day for today (324) differs from mine. Possibly another update of the NYT wordlist is needed?

Default color scheme is not colorblind-friendly

For colorblind people, the default settings of Wordle and this TUI are difficult to navigate due to the color scheme. Wordle does have a colorblind friendly mode that can be toggled on. This approach also has a problem though because by not having the default mode be colorblind-friendly, anybody who is colorblind cannot read the results that everybody else posts unless those people also turned their settings to be colorblind friendly. To that end I think that the interface should have a colorblind friendly color scheme as the default.

Custom words don't appear to work

Currently running cl-wordle = "0.2.2" from crates.io, and made a small script to pick a random word from cl_wordle::words::ACCEPTED, and run it using the wordle custom <word> command.

Found that the words weren't quite working.

Made a loop to see if this was a one-off, but 3081 words later none of them worked.

Edit: I just read the code and it appears that cl_wordle::words::FINAL is the wordlist accepted, excuse the mistake. Closing.

Off-by-one error?

I noticed that the solution when playing this wordle seems to be off by one day compared to the solution of New York Times' Wordle for the same day, i.e.
the solution for day 297 when playing this wordle is the solution for NYT's Wordle day 296.

A workaround that I've found is to add +1 to day in src/word.rs, but this does not seem to the right path forward for a fix.

Happy to put up a PR if I could get a few pointers as to where the underlying issue may lie.

No longer up to date with the NYT daily wordle, seems a bit ahead

Spoiler

Wordle 830 on the NYT is smile, Wordle 830 on the TUI is aider
https://www.nytimes.com/svc/wordle/v2/2023-09-27.json

Small pwsh script as a workaround for now:

wordle custom (Invoke-RestMethod "https://www.nytimes.com/svc/wordle/v2/$((Get-Date).ToString('yyyy-MM-dd')).json").solution

Small bash + date + curl + jq script as a workaround for now:

wordle custom $(curl -sSL "https://www.nytimes.com/svc/wordle/v2/$(date -I).json" | jq -r .solution)

Installing cl-wordle gives me a "error: linker 'link.exe' not found (Windows 11)

I'll install a VS, but seems like a strange requirement.

error: linker `link.exe` not found
  |
  = note: program not found

note: the msvc targets depend on the msvc linker but `link.exe` was not found

note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option

error: could not compile `memchr` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cl-wordle v0.1.1`, intermediate artifacts can be found at `C:\Users\XXX\AppData\Local\Temp\cargo-install03yD85`

error: there is no argument named `game_type` while compiling `cl-wordle`

When running the command cargo install cl-wordle:

error: there is no argument named `game_type`
   --> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/cl-wordle-0.1.4/src/bin/wordle/game.rs:300:27
    |
300 |         write!(f, "Wordle {game_type} {score}/6",)?;
    |                           ^^^^^^^^^^^

error: there is no argument named `score`
   --> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/cl-wordle-0.1.4/src/bin/wordle/game.rs:300:39
    |
300 |         write!(f, "Wordle {game_type} {score}/6",)?;
    |                                       ^^^^^^^

error: failed to compile `cl-wordle v0.1.4`, intermediate artifacts can be found at `/var/folders/9z/lyskqf9117j49qnlgjmh5p340000gn/T/cargo-installu6UsVg`

Caused by:
  could not compile `cl-wordle` due to 2 previous errors

cargo 1.56.0
MacOS Monterey 12.1

SOLUTION: Do not use Homebrew to install Rust. It will be a non-latest unsupported version.

Shuffling the keyboard removes formatting of invalid word

Steps to reproduce

  • Start wordle, e.g. wordle day 0
  • Type an invalid word, e.g. BLARG
  • Verify that the typed invalid word is displayed on a red background
  • Press , to shuffle the keyboard

Expected behaviour

  • The keyboard is shuffled
  • The invalid word is displayed on a red background

Actual behaviour

  • The keyboard is shuffled
  • The invalid word is displayed on the default terminal background, i.e. red background is removed

Unfortunately my rust knowledge is too limited to quickly propose a fix for this.

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.