尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Twisted Tales is a social mystery card game of lateral thinking where players work together like detectives to reconstruct bizarre, macabre, or seemingly impossible situations.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Twisted Tales is a social mystery card game of lateral thinking where players work together like detectives to reconstruct bizarre, macabre, or seemingly impossible situations.
New to the game? See How to Play.
Want to add or change cards? See Adding and Editing Cards.
This repository contains a small web prototype that shows one card at a time, in English or Spanish. The UI is designed mobile first, for players using a phone.
Requirements: Go 1.22 or newer.
go run .
Then open http://localhost:8080. To use another port, set the PORT environment variable:
PORT=3000 go run .
Cards are embedded into the binary, so restart the server after adding or editing a card.
net/http, html/template, embed, encoding/json), no external dependencies.resources/, named xxx-smalltitle-LANG.json (e.g. 001-glass-of-water-EN.json), with title, prompt and solution fields. Every card must exist in every language (EN and ES).templates/card.html. A small inline script (no libraries) makes Back, Next and Show/Hide solution fetch the card as JSON from GET /api/cards/{n}?solution=1 and update only the card instead of reloading the page; without JavaScript they are ordinary links.Secure when served over https, and still work on plain http://localhost.go test ./... # unit and HTTP route tests
go vet ./... # static checks
gofmt -l . # lists files that need formatting (no output means all good)
The tests cover card loading (ordering, language suffixes, EN/ES parity and error cases), page navigation, and the HTTP routes (redirect, 404s, solution hidden by default, language switch, help section, saved language and card cookies). Because they load the real files in resources/, adding a card without its translation makes them fail.
For a quick visual check, run go run . and open http://localhost:8080.
Many of the cards were adapted from yesnogame.net, which publishes these situation puzzles in several languages. Where a puzzle was available in only one language there, the other language is our own translation. Thanks to the authors and community behind that site.