Update Version (Beta): One word each new UTC hour
This commit is contained in:
@@ -1,4 +1,22 @@
|
||||
# worldleAddiction
|
||||
a wordle clone that you can play non stop if you don't have the patience to wait 24 hours... slightly better
|
||||
# WordleForSara
|
||||
# Fancy Wordle
|
||||
|
||||
A Wordle-style game with one shared word for every UTC hour.
|
||||
|
||||
## Supabase setup
|
||||
|
||||
The app can enforce the shared hourly word with Supabase/Postgres. Run `supabase/schema.sql` in your Supabase SQL editor, enable anonymous sign-ins in Supabase Auth, then fill in `supabase-config.js`:
|
||||
|
||||
```js
|
||||
window.FANCY_WORDLE_SUPABASE = {
|
||||
url: "https://your-project.supabase.co",
|
||||
anonKey: "your-public-anon-key"
|
||||
}
|
||||
```
|
||||
|
||||
The database chooses the word from `public.wordle_words` based on the current UTC hour, so everyone who plays during the same hour gets the same answer.
|
||||
|
||||
`supabase/schema.sql` seeds the first 120 target words. Add more rows to `public.wordle_words` if you want a longer no-repeat cycle.
|
||||
|
||||
If Supabase is not configured, the app falls back to a browser-only hourly lock using the same deterministic hourly word calculation from `targetWords.json`.
|
||||
|
||||
Anonymous auth enforces the limit per browser session. For stronger per-person enforcement, replace anonymous sign-in with email or OAuth sign-in.
|
||||
|
||||
Reference in New Issue
Block a user