Giter VIP home page Giter VIP logo

wordle's Introduction

wordle

TUI version of the Wordle word puzzle game written in Haskell

wordle

Features

  • Daily game mode (original Wordle words)
  • Infinite game mode
  • Custom word length
  • Custom max attempts
  • Custom target and guess dictionaries
  • Result sharing (emoji + ascii)
  • Hard mode

Install

From source

Install Stack

git clone https://github.com/ivanjermakov/wordle.git
cd wordle
stack install

From binary

Download the latest binary from the Releases page

wget https://github.com/ivanjermakov/wordle/releases/latest/download/wordle
chmod +x wordle
sudo mv wordle /usr/bin/

Usage

Usage:
  wordle [-idstgalvh]

Options:
  -i, --infinite              Infinite game mode (Default)
  -d, --daily                 Daily game mode
  -s, --ascii                 Print results in ASCII
  -t, --target-dict=<file>    Path to the target word dictionary
  -g, --guess-dict=<file>     Path to the guess word dictionary
  -a, --attempts=<number>     Number of attempts allowed
  -l, --word-length=<number>  Target word length
  -v, --version               Show wordle version
  -h, --help                  Show this message and exit

Credit

wordle's People

Contributors

ivanjermakov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

imlaoji

wordle's Issues

Print not guessed results too

Example:

Wordle 237 X/6

โฌ›๐ŸŸจ๐ŸŸจโฌ›โฌ›
๐ŸŸจโฌ›โฌ›๐ŸŸฉ๐ŸŸฉ
โฌ›โฌ›โฌ›๐ŸŸฉ๐ŸŸฉ
โฌ›๐ŸŸจโฌ›๐ŸŸฉ๐ŸŸฉ
โฌ›๐ŸŸจ๐ŸŸจ๐ŸŸฉ๐ŸŸฉ
๐ŸŸจ๐ŸŸจโฌ›๐ŸŸฉ๐ŸŸฉ

Accept custom arguments

Make wordle configurable with command line arguments. Configure:

  • Target word dictionary path
  • Guess word dictionary path
  • Attempts allowed
  • Word length

Missing LICENSE file

I see the license is MIT. If you create a LICENSE file, the license will be obvious to visitors within the first page view of the project.

Right letter wrong position doesn't work properly

Nice program!

Maybe I just don't know the game very well, but wanted to give you this feedback. I was playing and on my first try the letter "i" didn't show as orange, but it was actually on the right word (it even shows on my second-to-last try). Is is a bug or I'm missing a rule?

image

Daily challenge

There is a way to fetch current word of the day used in official Wordle version.

Example how it's done by the word-guessing-game.

We can introduce new flag/mode to run specific word from determined list.

`stack install` error on Windows

Error: [S-4804]
       Stack failed to construct a build plan.

       While constructing the build plan, Stack encountered the following errors:

       In the dependencies for brick-0.62(+demos):
           unix needed, but the Stack configuration has no specified version (latest matching version is 2.8.2.1)
       needed due to wordle-0.2.2 -> brick-0.62

       In the dependencies for vty-5.33:
           terminfo must match >=0.3 && <0.5, but the Stack configuration has no specified version (latest matching
                    version is 0.4.1.6)
           unix needed, but the Stack configuration has no specified version (latest matching version is 2.8.2.1)
       needed due to wordle-0.2.2 -> vty-5.33

Hard mode

Any revealed hints must be used in subsequent guesses.
Only count word valid if it contains all of the guessed letters.

Import progress

Original Wordle progress can be fetched from the localstorage:

localStorage.getItem('nyt-wordle-statistics')
'{"currentStreak":11,"maxStreak":11,"guesses":{"1":0,"2":0,"3":1,"4":3,"5":5,"6":2,"fail":1},"winPercentage":92,"gamesPlayed":12,"gamesWon":11,"averageGuesses":5}'

This can be used to transfer progress from original version to the terminal one

Does not work on macOS Catalina

Installing from binary does not work on macOS Catalina with zsh.

OS: macOS 10.15.7
Model: 16" MacBook Pro (Intel core i7)

Commands run:

wget https://github.com/ivanjermakov/wordle/releases/latest/download/wordle
chmod +x wordle
sudo mv wordle /usr/bin/
and
chmod a+x ./wordle

Error:
zsh: exec format error: ./wordle

Thank you

Share result

Copy Wordle sharing functionality. Once word is guessed, print the following message in the terminal:

Wordle 229 4/6

โฌœ๐ŸŸฉโฌœ๐ŸŸจโฌœ
โฌœ๐ŸŸฉ๐ŸŸฉโฌœ๐ŸŸจ
โฌœ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸจ
๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ

Use Wordle [day] [attempt]/[maxAttempts] format for the header in case of a daily challenge or replace [day] by โˆž in case of a normal game.

Description of the format:

Char GuessType
โฌœ NotInWord
๐ŸŸจ WrongSpot
๐ŸŸฉ CorrectSpot

In case of a failed game, print nothing.

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.