mirror of
https://github.com/Dasemu/web-imposter-game.git
synced 2026-11-26 23:36:33 +00:00
Add root CLAUDE.md, docs/ (game-rules.md, release.md), LESSONS.md and .env.example; trim README.md to a landing page linking to docs/. No linter, test runner or formatter is configured for this static HTML/CSS/JS project, so no .claude/settings.json hooks or CI workflows were added: there is nothing to run. CI (asset versioning + Android APK build/release) already exists in .gitea/workflows and .github/workflows and is documented in docs/release.md as-is, since there is no development branch to drive the standard version.yml flow. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
# Impostor Game (offline)
|
|
|
|
## What is it?
|
|
Role-based impostor-style game for mobile, 100% in the browser with no backend. Uses localStorage so a reload doesn't lose the match. Features **impostor-specific words** for each civilian word to make the game more challenging! 22 word-pool categories are available, and you can select several at once.
|
|
|
|
## Structure
|
|
- `www/index.html`: main UI.
|
|
- `www/styles.css`: mobile-first, no-scroll optimized styles.
|
|
- `www/script.js`: game logic (roles, timers, voting, tiebreaks, word pools with impostor variants).
|
|
- `www/word-pools/`: 22 word pools in `.txt` + `manifest.json`.
|
|
- `android/`: Capacitor-generated Android project.
|
|
|
|
See `docs/game-rules.md` for the full rules and word-pool format, and `docs/release.md` for how builds and releases work.
|
|
|
|
## How to run (offline)
|
|
Use any static file server so `fetch` can read the `.txt` files (needed if opening via `file://`). Example with Python:
|
|
|
|
```bash
|
|
git clone https://git.dariosevilla.es/dasemu/web-imposter-game
|
|
cd web-imposter-game
|
|
python -m http.server 8000
|
|
```
|
|
|
|
Open in browser: `http://localhost:8000`
|
|
|
|
For Android, see `docs/release.md`.
|
|
|