Wordle-solver - Wordle solver with golang

wordle-solver

Recommends guesses for https://www.powerlanguage.co.uk/wordle/

How to use this

Prepare a dictionary file that has five-letter words in it.

Example:

aahed
aalii
aargh
aaron
abaca
...

go run

go run main.go --dictionary five-letter-words.txt

Example

Let's say the answer is solve . For each try, the number of candidates and the list of recommendations will be output. Enter your guess and result each time.

$ go run main.go --dictionary five-letter-words.txt
-----Try number 1-----
There are 14849 candidates. Here are the first 10 candidates:
[aahed aalii aargh aaron abaca abaci aback abada abaff abaft]

Here are the first 10 recommendations to help narrow down the word:
[{arose 30949} {seora 30949} {raise 30623} {serai 30623} {aesir 30623} {aries 30623} {arise 30623} {osela 30089} {solea 30089} {alose 30089}]

Enter your guess: arose
Enter the result (b: blank, y: yellow, g: green): bbyyg
Guess: arose, Result: bbyyg

-----Try number 2-----
There are 17 candidates. Here are the first 10 candidates:
[cosie essee fosie goloe hoboe issue josie moste oside socle]

Here are the first 10 recommendations to help narrow down the word:
[{toise 64} {sotie 64} {eosin 63} {noise 63} {moise 63} {eidos 63} {diose 63} {cosie 63} {idose 63} {oside 63}]

Enter your guess: toise
Enter the result (b: blank, y: yellow, g: green): bgbyg
Guess: toise, Result: bgbyg

-----Try number 3-----
There are 7 candidates. Here are the candidates:
[goloe hoboe socle solve somne sonde sowle]

Here are the first 10 recommendations to help narrow down the word:
[{solen 27} {enols 27} {slone 27} {noels 27} {lenos 27} {coles 26} {solve 26} {socle 26} {loges 26} {doles 26}]

Enter your guess: solen
Enter the result (b: blank, y: yellow, g: green): gggyb
Guess: solen, Result: gggyb

-----Try number 4-----
There is 1 candidate. This is probably the answer: solve

Enter your guess: solve
Enter the result (b: blank, y: yellow, g: green): ggggg
Guess: solve, Result: ggggg

GJ!
Game over.
Owner
Stefan Utamaru
Web application engineer.
Stefan Utamaru
Similar Resources

Golang CS:GO external base. Development currently halted due to compiler/runtime Golang bugs.

gogo Golang CS:GO External cheat/base. Also, my first Golang project. Wait! Development momentarily halted due to compiler/runtime bugs. Disclaimer Th

Jun 25, 2022

Belajar Golang Install Golang

Golang belajar Golang Install Golang = download di https://golang.org/dl/ = pilih yg Zip = extract file zipnya = buka foldernya - copy folder go = pas

Nov 15, 2021

Golang-module-references - A reference for how to setup a Golang project with modules - Task Management + Math Examples

Golang Module Project The purpose of this project is to act as a reference for setting up future Golang projects using modules. This project has a mat

Jan 2, 2022

Golang-echo-sample - Make an out-of-the-box backend based on golang-echo

Golang-echo-sample - Make an out-of-the-box backend based on golang-echo

Dec 31, 2021

Minimalistic, pluggable Golang evloop/timer handler with dependency-injection

Anagent Minimalistic, pluggable Golang evloop/timer handler with dependency-injection - based on codegangsta/inject - go-macaron/inject and chuckpresl

Sep 27, 2022

GoLang Library for Browser Capabilities Project

Browser Capabilities GoLang Project PHP has get_browser() function which tells what the user's browser is capable of. You can check original documenta

Sep 27, 2022

Golang counters for readers/writers

Datacounter Golang counters for readers/writers. Examples ReaderCounter buf := bytes.Buffer{} buf.Write(data) counter := datacounter.NewReaderCounter(

Oct 9, 2022

Golang beautify data display for Humans

Golang beautify data display for Humans English 简体中文 Install # Stable version go get -u -v gopkg.in/ffmt.v1 # Latest version go get -u -v github.com/

Dec 22, 2022

a generic object pool for golang

Go Commons Pool The Go Commons Pool is a generic object pool for Golang, direct rewrite from Apache Commons Pool. Features Support custom PooledObject

Jan 5, 2023
Wordle - Simple wordle solver with golang

wordle Simple wordle solver Lets see it in action: $ ./wordle 5914 possible rem

May 19, 2022
Solver for wordle hard mode - achieves 5 attempts or less 100% of the time

wordier Solver for wordle hard mode - achieves 5 attempts or less 100% of the time Example - Spoiler ➜ wordier git:(master) ✗ go run main.go scamp ➜

Jan 12, 2022
Go-wordle - Wordle implementation in GoLang
Go-wordle - Wordle implementation in GoLang

go-wordle A golang implementation of the popular New York Times game Wordle. Usa

Dec 12, 2022
Wordle - Wordle on command line

wordle Play WORDLE on the command line. Installation go install github.com/howey

May 19, 2022
Wordle-guesser - Implementing brute force wordle guesser

wordle-guesser Project still WIP. Wordle guesser. Implementing brute force wordl

Jan 24, 2022
Wordle - A terminal Wordle written in Go
Wordle - A terminal Wordle written in Go

Wordle A terminal Wordle written in Go. Running If you couldn't tell from the im

Dec 26, 2022
Wordle - Wordle game in Go
Wordle - Wordle game in Go

wordle wordle game in Go rules - You have 5 guesses - You can only guess using 5

Feb 26, 2022
go-wordle - Wordle in terminal, written in Go
go-wordle - Wordle in terminal, written in Go

go-wordle go-wordle is a simple console application that allows user to play Wordle game in terminal. It is synchronized with official New York Times

Feb 19, 2022
Go-sudoku - Sudoku generator and solver implementation in GoLang

go-sudoku An implementation of Sudoku generators and solvers in GoLang. Usage He

Nov 7, 2022
optwdl: Helpful word sets for solving Wordle puzzles

optwdl: Helpful word sets for solving Wordle puzzles. Wordle gives you 6 tries to identify a 5 letter word. I decided to look for sets of 5 words that

Jan 24, 2022