Skip to content

gerald-lbn/wthex

Repository files navigation

What The Hex

What The Hex ?!

What The Hex is a wordle-like game where you try to guess hex colors

How to play 🧐

  • You have 6 attempts to guess the hex color
  • After each attempt, you will get feedback on how close you are to the correct hex color
    • ⏫: Value is higher by 3 or more
    • ⏬: Value is lower by 3 or more
    • ⬆️: Value is higher by 1 or 2
    • ⬇️: Value is lower by 1 or 2
    • ✅: Value is correct

Stack 📦️

Development 🛠️

Environment variables

Variable Description
POSTGRES_URL Postgres connection URL to my database
CRON_SECRET Secret key for the cron job

Copy the .env.example file to .env and fill in the values

cp .env.example .env

Database setup

  1. Create a new database
  2. Push the schema to the database
# Npm
npm run db:push

# Yarn
yarn db:push

# Pnpm
pnpm db:push

# Bun
bunx run db:push

Development server

# Npm
npm run dev

# Yarn
yarn dev

# Pnpm
pnpm dev

# Bun
bun dev

i18n (Internationalization)

I'm using ParaglideJS for i18n.

As of now, the following languages are supported:

If you want to see the game in another language, feel free to contribute by adding a new language in the inlang project

License 📝

This project is licensed under the GPL-3.0 License - see the LICENSE file for details

About

What the hex: A Wordle game but with hex colors

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published