Gordle
A golang TUI implementation of the popular word quiz Wordle!
System requirements
A system dictionary must be installed. On debian based systems run $ apt-get install wbritish
or $ apt-get install wamerican
.
$ go run ./cmd/cli
Welcome to π©π¨β¬ Gordle β¬π¨π©
You have 6 trys to guess the word of the day.
NOTE: The current implementation will pick a new word on every run!
π© means, the letter is in the word and in the correct spot.
π¨ means, that the letter is in the word but in the wrong spot.
β¬ means, that the letter is in not in the word in any spot.
Enter 5 characters alter
alter β¬β¬π©π©β¬ (Try 1/6)
Enter 5 characters tests
tests π¨π¨π¨π¨π© (Try 2/6)
Enter 5 characters setts
setts π¨π¨π©π¨π© (Try 3/6)
Enter 5 characters estes
estes π¨π¨π©π©π© (Try 4/6)
Enter 5 characters setes
setes π¨π¨π©π©π© (Try 5/6)
Enter 5 characters mates
mates β¬β¬π©π©π© (Try 6/6)
Your Gordle results (2022-01-16):
alter β¬β¬π©π©β¬ (1/6)
tests π¨π¨π¨π¨π© (2/6)
setts π¨π¨π©π¨π© (3/6)
estes π¨π¨π©π©π© (4/6)
setes π¨π¨π©π©π© (5/6)
mates β¬β¬π©π©π© (6/6)
The solution was: dotes
Building
- Build the cli command:
$ go build ./cmd/cli
<Empty output on build success>
Running
- Either run:
$ go run ./cmd/cli
[...]
- Or run this after having build the command:
$ ./cli
[...]
Running Tests
- Run the testsuite with coverage enabled:
$ go test ./... -coverprofile=coverage.out
? github.com/TheDonDope/gordle/cmd/cli [no test files]
ok github.com/TheDonDope/gordle/pkg/validation 0.001s coverage: 100.0% of statements
- Open the results in the browser:
$ go tool cover -html=coverage.out
<Opens Browser>