Git Product home page Git Product logo

wordle-cli's Introduction

wordle-cli

Command-line clone of Josh Wardle's Wordle, inspired by Paul Battley's Ruby version. Features:

  • play against random solutions, or against the daily "official" Wordle solution
  • uses official (NYT) dictionaries of solutions and valid guesses
  • spoiler-free emoji summaries for sharing
  • optional hints mode (--hints) to show number of possible words remaining

Screenshot of a wordle-cli game

Download and run

Requires Python 3.6 or later, and a modern terminal app.

To download the code and run it:

git clone https://github.com/klipspringr/wordle-cli.git && cd wordle-cli
python3 play.py

Alternatively, if you don't have git: click Code > Download ZIP on GitHub, extract the ZIP, open a terminal, cd to the extracted folder and run python3 play.py.

A terminal with support for colours and emoji is required. On Windows and WSL, Windows Terminal is the best choice. PowerShell and the Windows command prompt are only supported if running in Windows Terminal.

Options

Usage: python3 play.py [-h|--help] [--today|DAY|SOLUTION] [--hints]

Option Behaviour
none Use a random solution from the official Wordle dictionary
--today * Use today's official Wordle solution
DAY (number) * Use the official solution from this DAY
SOLUTION (string) * Use a given SOLUTION (must be 5-letter word)
--hints After each guess, report number of possible words remaining
-h , --help Print this help text and quit

Note: options marked * are mutually-exclusive.

So, to play against random solutions, run python3 play.py; to play today's official solution, run python3 play.py --today; or to play against the solution from game day 211 (16 January 2022), run python3 play 211.

Hints mode (--hints) looks like this:

Screenshot of a wordle-cli game with hints

Configuration

To change the terminal colours, sharing emoji and other variables, save the file config.ini.defaults as config.ini and uncomment and edit the relevant lines. Colours are specified using ECMA-48 Select Graphic Rendition codes (cheat sheet).

wordle-cli's People

Contributors

klipspringr avatar

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.