Coder Social home page Coder Social logo

shinyhero36 / wthex Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 366 KB

What the hex: A Wordle game but with hex colors

Home Page: https://wthex.vercel.app

License: GNU General Public License v3.0

JavaScript 5.25% HTML 2.14% TypeScript 21.77% Svelte 53.75% SCSS 17.09%
sveltekit

wthex's Introduction

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

wthex's People

Contributors

shinyhero36 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.