Skip to content

taiidani/guess-my-word

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess My Word

Go

This is a pet project game around guessing a word based on its location in the alphabet. Users will provide a word, and the application will tell them if that word falls before or after the target in the alphabet. This process will then be repeated until the target is found. HINT: Think binary search trees!

Currently a work in progress. Feature requests are welcome using GitHub issues!

Attributions

Inspiration was taken heavily from https://hryanjones.com/guess-my-word/.

The Scrabble word list was obtained from https://sourceforge.net/projects/scrabbledict/.

The backend web framework in use is Chi: https://go-chi.io

The frontend frameworks in use are:

Persistence is being enabled using a Redis backend.

Contributing

The application requires the following to be configured:

  • Go installed, matching the version in the go.mod file.

Start the application in development mode with:

go run main.go

Then view the website at http://localhost:3000.

Dev away!

Persistence

By default the application runs in "Local Mode" and will not persist any of the data (such as generated words). If you need to test the persistence options you may point the application at a local Redis instance:

docker-compose up -d
REDIS_ADDR=127.0.0.1:6379 go run main.go