TheDonDope / gordle

A golang TUI implementation of the popular word quiz wordle!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gordle

CodeQL codecov

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
β¬›πŸŸ¨πŸŸ¨πŸŸ¨πŸŸ¨ (Try 1/6): alter
Enter 5 characters rutel
πŸŸ¨β¬›πŸŸ¨πŸŸ¨πŸŸ¨ (Try 2/6): rutel
Enter 5 characters rolet
πŸŸ¨β¬›πŸŸ¨πŸŸ¨πŸŸ¨ (Try 3/6): rolet
Enter 5 characters toler
πŸŸ¨β¬›πŸŸ¨πŸŸ¨πŸŸ¨ (Try 4/6): toler
Enter 5 characters mulls
β¬›β¬›πŸŸ¨πŸŸ¨πŸŸ¨ (Try 5/6): mulls
Enter 5 characters mills
β¬›πŸŸ©πŸŸ¨πŸŸ¨πŸŸ¨ (Try 6/6): mills

Your Gordle results (2022-01-18):
β¬›πŸŸ¨πŸŸ¨πŸŸ¨πŸŸ¨ (1/6): alter
πŸŸ¨β¬›πŸŸ¨πŸŸ¨πŸŸ¨ (2/6): rutel
πŸŸ¨β¬›πŸŸ¨πŸŸ¨πŸŸ¨ (3/6): rolet
πŸŸ¨β¬›πŸŸ¨πŸŸ¨πŸŸ¨ (4/6): toler
β¬›β¬›πŸŸ¨πŸŸ¨πŸŸ¨ (5/6): mulls
β¬›πŸŸ©πŸŸ¨πŸŸ¨πŸŸ¨ (6/6): mills

The solution was: lister

Building

  • Build the cli command (alternatively $ task build if you are using Task):
$ go build ./cmd/cli
<Empty output on build success>

Running

  • Either run (alternatively $ task run if you are using Task):
$ go run ./cmd/cli
[...]
  • Or run this after having build the command:
$ ./cli
[...]

Running Tests

  • Run the testsuite with coverage enabled (alternatively $ task test if you are using Task):
$ go test -race ./... -coverprofile cp.out
?       github.com/TheDonDope/gordle/cmd/cli    [no test files]
ok      github.com/TheDonDope/gordle/pkg/game   0.584s  coverage: 63.8% of statements
ok      github.com/TheDonDope/gordle/pkg/storage        0.019s  coverage: 57.1% of statements
  • Open the results in the browser:
$ go tool cover -html cp.out -o cp.html
<Opens Browser>

About

A golang TUI implementation of the popular word quiz wordle!

License:The Unlicense


Languages

Language:Go 100.0%