GithubHelp home page GithubHelp logo

wordle-cli's Introduction

wordle-cli

Play (or solve) a game of Wordle in your terminal.

Screenshot of a Wordle game

Installation

Clone the repository. Once in the directory, run:

npm install

Usage

To start wordle-cli, run:

node index.js

Use arrow keys to navigate the menu. Press Enter to select an option.

There are three modes: Play, Solve, and Benchmark.

Play

Play a classic game of Wordle. Guess the five-letter word in six tries or less. Press Enter to submit a guess.

Solve

Solves a game of Wordle. Enter the result of a guess, and wordle-cli will tell you the next best guess to make. Input the guess results using the following format:

  • Use ? after a letter to indicate a yellow letter (e.g. F?)
  • Use ! after a letter to indicate a gray letter (e.g. V!)
  • Any other character will be considered a green letter.

Examples of valid inputs: SL!A?T!E? or C!RON!Y!.

Note Each instance of the solver has its own internal state of letters that have been guessed in the current game. You need to start a fresh instance of the solver for each game you want to solve.

Benchmark

Benchmarks the solver algorithm against all 2315 possible words. Currently, the solver algorithm solves a game in approximately 3.59 guesses on average, using SALET as the first guess.

wordle-cli's People

Contributors

einoko avatar

Watchers

 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.