Skip to content

A daily online puzzle game to guess a secret word

License

Notifications You must be signed in to change notification settings

darccio/atspek-zodi

Repository files navigation

Atspėk žodį

A daily online puzzle game to guess a secret word. Made using React, Typescript, and Tailwind.

Build and run

To Run Locally:

Clone the repository and perform the following command line actions:

$> cd atspek-zodi
$> npm install
$> npm run start

To build/run docker container:

Development

$> docker build -t atspek-zodi:dev -f docker/Dockerfile .
$> docker run -d -p 3000:3000 --name atspek-zodi-dev atspek-zodi:dev

Open https://localhost:3000 in browser.

Production

$> docker build --target=prod -t atspek-zodi:prod -f docker/Dockerfile .
$> docker run -d -p 80:8080  --name atspek-zodi-prod atspek-zodi:prod

Open https://localhost in browser. See the entry in the FAQ below about requirements for sharing of results.

FAQ

How can I change the length of a guess?

The default configuration is for solutions and guesses of length five, but it is flexible enough to handle other lengths, even variable lengths each day.

To configure for a different constant length:

To configure for variable lengths:

Note that guesses are validated against both the length of the solution, and presence in VALID_GUESSES.

How can I create a version in another language?

Why does sharing of results not work?

For mobile and wearable devices and smart TVs, sharing of results is initially attempted using the Web Share API. For other devices or when sharing to the Web Share API fails, the results are written to the clipboard. Both these methods will succeed only in a secure context, which require you to implement the HTTPS protocol when hosting this repo on a public domain.

About

A daily online puzzle game to guess a secret word

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages