Wordle-cli - play wordle in your command line

Overview

Wordle CLI

Play Wordle in your command line!

Screenshots

Wordle in-game

Wordle game over

Wordle statistics

Download

You can download the latest binary from the GitHub releases page. Placing the binary somewhere in your PATH will make it available system-wide.

For Debian users

If you have a Debian or Debian-based system, you can use our Debian package repository to install and update Wordle CLI globally.

Run the following commands in succession:

echo "deb https://deb.nimblebun.works/debian stable main" | sudo tee /etc/apt/sources.list.d/nimblebun.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 033D0D4895F432D1
sudo apt update
sudo apt install wordle-cli

Usage

./wordle          # play today's official word
./wordle daily    # play today's Wordle CLI word
./wordle random   # play a random word

In-game you can press CtrlC to quit anytime. You can press Enter to validate your current word (note: invalid words will not be validated). Pressing Backspace will remove the last letter.

Once you're on the finish screen you can use the key to view your statistics for the chosen Wordle type. You can then use the key to return to the game overview. Note: random mode does not have statistics.

In random mode, you can press CtrlN on the finish screen to play a new random word.

Credits

License

MIT.

You might also like...
Package command provide simple API to create modern command-line interface

Package command Package command provide simple API to create modern command-line interface, mainly for lightweight usage, inspired by cobra Usage pack

A command line tool for simplified docker volume command built with go

dockervol A command line tool for simplified docker volume command built with go. Features: Remove anonymous volume (beta) Remove volume by matching n

Watcher - A simple command line app to watch files in a directory for changes and run a command when files change!

Watcher - Develop your programs easily Watcher watches all the files present in the directory it is run from of the directory that is specified while

CLI - A package for building command line app with go
CLI - A package for building command line app with go

Command line interface Screenshot Key features Lightweight and easy to use. Defines flag by tag, e.g. flag name(short or/and long), description, defau

Golang library with POSIX-compliant command-line UI (CLI) and Hierarchical-configuration. Better substitute for stdlib flag.
Golang library with POSIX-compliant command-line UI (CLI) and Hierarchical-configuration. Better substitute for stdlib flag.

cmdr cmdr is a POSIX-compliant, command-line UI (CLI) library in Golang. It is a getopt-like parser of command-line options, be compatible with the ge

FireFly Command Line Interface (CLI)
FireFly Command Line Interface (CLI)

FireFly CLI The FireFly CLI can be used to create a local FireFly stacks for offline development of blockchain apps. This allows developers to rapidly

FireFly Command Line Interface (CLI)
FireFly Command Line Interface (CLI)

FireFly CLI The FireFly CLI can be used to create a local FireFly stacks for offline development of blockchain apps. This allows developers to rapidly

A Nano ID command line (CLI) tool implemented in Go.

Nano ID CLI The Nano ID CLI is a command line tool for generating Nano IDs. With Nano ID CLI you can quickly generate one or more Nano ID strings of a

An unofficial command line interface (CLI) for ASPEN's Oneliner application

Overview OlxCLI is an unofficial command line interface (CLI) for ASPEN's Oneliner application. The CLI provides commands for running common fault sim

Comments
  • Carriage return (ENTER) not working

    Carriage return (ENTER) not working

    The carriage return key doesn't work on the starting word -- but only some words -- in v1.0.2. Type all 5 characters, hit ENTER, and nothing happens. For example, STEAM, SMART, and TRIED do not work, but SOARS and MEATS do. Downgraded to v1.0.1, and it all (valid) words work.

    Version: v1.0.2
    Go: go1.17.7 linux/amd64
    Shell: st + tmux

    bug 
    opened by xxxserxxx 2
  • show word on loss

    show word on loss

    Show word on loss

    Wasn't sure if I should have refactored GetMessage to be on the AppModel, so I went the quick route and added a parameter.

    Thanks again!

    opened by tom-on-the-internet 0
  • `invalid memory address or nil pointer dereference` on entering a valid word in random mode

    `invalid memory address or nil pointer dereference` on entering a valid word in random mode

    Output:

    Caught panic:
    
    runtime error: invalid memory address or nil pointer dereference
    
    Restoring terminal...
    
    goroutine 1 [running]:
    runtime/debug.Stack()
    	/usr/lib/go/src/runtime/debug/stack.go:24 +0x65
    runtime/debug.PrintStack()
    	/usr/lib/go/src/runtime/debug/stack.go:16 +0x19
    github.com/charmbracelet/bubbletea.(*Program).StartReturningModel.func3()
    	/home/max/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:350 +0x95
    panic({0x5c5580, 0x78d9c0})
    	/usr/lib/go/src/runtime/panic.go:1047 +0x266
    pkg.nimblebun.works/wordle-cli/game.(*AppModel).save(0xc000136780)
    	/home/max/git/wordle-cli/game/utils.go:253 +0x27
    pkg.nimblebun.works/wordle-cli/game.(*AppModel).enter(0xc000136780)
    	/home/max/git/wordle-cli/game/utils.go:164 +0x5ec
    pkg.nimblebun.works/wordle-cli/game.(*AppModel).handleKeyDown(0xc000136780, 0xc000000228, {0x0, 0xc0000d0000, 0x0})
    	/home/max/git/wordle-cli/game/model.go:114 +0x14d
    pkg.nimblebun.works/wordle-cli/game.(*AppModel).Update(0xc00019c000, {0x5d86c0, 0xc000292030})
    	/home/max/git/wordle-cli/game/model.go:137 +0x6f
    github.com/charmbracelet/bubbletea.(*Program).StartReturningModel(0xc00015a280)
    	/home/max/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:534 +0x139c
    github.com/charmbracelet/bubbletea.(*Program).Start(...)
    	/home/max/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:543
    main.startGame({0x5fbfc5, 0x5ef8a1}, 0xc00010af70, 0xc000126600)
    	/home/max/git/wordle-cli/main.go:25 +0x54
    main.startRandom(<<<<<<<<<<<<0xc00010af70)
    	/home/max/git/wordle-cli/main.go:40 +0x26
    github.com/urfave/cli/v2.(*Command).Run(0xc00019a240, 0xc000126540)
    	/home/max/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:163 +0x64a
    github.com/urfave/cli/v2.(*App).RunContext(0xc000110ea0, {0x64bb90, 0xc00013a010}, {0xc000128000, 0x2, 0x2})
    	/home/max/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:313 +0x81e
    github.com/urfave/cli/v2.(*App).Run(...)
    	/home/max/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:224
    main.main()
    	/home/max/git/wordle-cli/main.go:68 +0x1f9
    

    From reading the code referenced in the stack trace, my guess is that m.SaveData on the first line of save() in game/utils.go is nil, but I haven't used Go before so that's just a guess.

    Edit: adding the following -

    if (m.SaveData == nil) {
        return
    }
    

    to the start of the aforementioned function fixes the problem by not saving the state of random mode games, but I don't know this is the intended behaviour and if it would break other things related to saving because I haven't read enough of the rest of the program. That said, I can submit a pull request if you'd like.

    Output of go version: go version go1.17.6 linux/amd64
    OS: Manjaro, kernel version: 5.16.7-1-MANJARO

    Let me know if there's any other information that would be helpful for me to provide :)

    bug 
    opened by maxcutlyp 0
  • Fix gameplay bugs and improve accuracy

    Fix gameplay bugs and improve accuracy

    This update contains the following changes:

    • Fix case where a letter is entered twice but the word only contains it once (fixes #1)
    • Save whenever the player presses the enter key instead (prevents cheating/premature retries)
    • Add keyboard shortcut for copying share string
    • Add list of valid words and use that for validating input
    opened by jozsefsallai 0
Releases(v1.0.9)
Owner
Nimble Bun Works
Nimble Bun Works
A command line tool that builds and (re)starts your web application everytime you save a Go or template fileA command line tool that builds and (re)starts your web application everytime you save a Go or template file

# Fresh Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file. If the web framework yo

null 0 Nov 22, 2021
Go-wordle - Terminal based wordle game

Go-wordle - Terminal based wordle game

Ann Kilzer キルザー杏 7 Feb 25, 2022
An open-source GitLab command line tool bringing GitLab's cool features to your command line

GLab is an open source GitLab CLI tool bringing GitLab to your terminal next to where you are already working with git and your code without switching

Clement Sam 2.1k Nov 22, 2022
A command line tool to prompt for a value to be included in another command line.

readval is a command line tool which is designed for one specific purpose—to prompt for a value to be included in another command line. readval prints

Venky 0 Dec 22, 2021
git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.

Table of contents Introduction Reference Contributing Introduction Overview git-xargs is a command-line tool (CLI) for making updates across multiple

Gruntwork 685 Nov 21, 2022
git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command

git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command. You give git-xargs:

Maxar Infrastructure 1 Feb 5, 2022
Soren L. Hansen 1.7k Nov 21, 2022
Watch your favourite anime using the video player of your choice directly from the command line

anime-cli Watch your favourite anime using the video player of your choice direc

Ruben Dewitte 4 Feb 10, 2022
A CLI to replace your git commit command, so your git message can partially follow the Conventional Changelog ecosystem

COMMIT CLI A CLI to replace your git commit command, so your git message can partially follow the Conventional Changelog ecosystem. And yes, it is bui

Hisam Fahri 1 Feb 9, 2022
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.

asciigraph Go package to make lightweight ASCII line graphs ╭┈╯. Installation go get github.com/guptarohit/asciigraph Usage Basic graph package main

Rohit Gupta 2.1k Nov 28, 2022