Daily US States Puzzle — like Sudoku, with American geography.
# Install Wrangler once
npm install -g wrangler
# From the project root
wrangler pages deploy . --project-name=statedokuFollow the prompts to log in (browser will open). First deploy creates the project; subsequent deploys update it.
- Push this folder to GitHub:
git init git add . git commit -m "Initial Statedoku build" gh repo create statedoku --public --source=. --push
- Go to https://dash.cloudflare.com → Pages → Create a project → Connect to Git
- Select the
statedokurepo - Build settings:
- Framework preset: None
- Build command: (leave empty)
- Build output directory:
/
- Click Save and Deploy
- Buy
statedoku.com(~$10/yr). Recommended: Cloudflare Registrar — at-cost pricing, free WHOIS privacy, DNS already on Cloudflare. - In Cloudflare Pages → your project → Custom domains → Add
statedoku.comandwww.statedoku.com. - If domain is on Cloudflare Registrar, DNS is set automatically. Else, add the CNAME Cloudflare gives you to your registrar.
python3 -m http.server 8765
# Open http://localhost:8765/?dev=1index.html(EN),fr/index.html,es/index.htmljs/puzzle.js— daily puzzle generation (deterministic, seeded by date)js/game.js— game loop + dev panel (superadmin via?dev=1)js/ads.js— AdSense loader + GDPR consentjs/i18n.js— language switchingdata/states.json— 50 states with ~80 attributes eachdata/translations.json— UI strings + constraint labels in EN/FR/EScss/style.cssog-image.svg,favicon.svgsitemap.xml,robots.txt_headers,_redirects— Cloudflare Pages configmanifest.json— PWA
- Get approved at adsense.google.com.
- Edit
config.js: setADSENSE_PUBLISHER_IDto yourca-pub-...ID. - Edit
js/ads.js: replace the 3 placeholder slot IDs with your real ones.