mirror of
https://github.com/Dasemu/si-no-o-indiferente.git
synced 2026-11-27 15:56:52 +00:00
Add player difficulty ratings, drop hint system, use Peninsular Spanish in Gemini prompt
Players can now submit a voluntary 1-5 difficulty rating after a story ends (POST /api/stories/:id/ratings), stored in data/ratings.json. A new reclassifyDifficulty script (wired to a weekly systemd timer) averages those ratings and adjusts a story's difficulty band once it has enough votes. The progressive hint system is removed end-to-end (schema, Gemini prompt/response schema, generation instructions), and the Gemini prompt is rewritten in Peninsular Spanish with an explicit instruction to generate story content in Spain Spanish rather than any LatAm variant. Also translates remaining Spanish code comments/error strings to English and updates the backend README and systemd units accordingly.
This commit is contained in:
1 parent
7f3e6cc839
commit
99a903f6e1
20 files changed
+275
-97
No files matched your search
@@ -12,7 +12,9 @@
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"start": "node dist/index.js",
|
||||
"generate": "tsx src/scripts/generateDaily.ts",
|
||||
"generate:built": "node dist/scripts/generateDaily.js"
|
||||
"generate:built": "node dist/scripts/generateDaily.js",
|
||||
"reclassify": "tsx src/scripts/reclassifyDifficulty.ts",
|
||||
"reclassify:built": "node dist/scripts/reclassifyDifficulty.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"cors": "^2.8.5",
|
||||
|
||||
Reference in new issue
Block a user