feat: complete the thirteen-stage financial learning path
Backend CI / type-check, build, tests (push) Successful in 1m16s

Server grades levels 7-13 and keeps castle attempt results separate from stored progress.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-22 19:41:24 +03:30
co-authored by Cursor
parent dfb20ca92c
commit 866be22395
52 changed files with 3840 additions and 30 deletions
+32
View File
@@ -0,0 +1,32 @@
# مرحله ۱۳ — آزمون قلعه
## هدف
آزمون، آموخته‌های مراحل ۱ تا ۱۲ را مرور می‌کند و مفهوم تازه یاد نمی‌دهد. مثال‌ها خیالی و جدا از کیف پول‌اند. سرعت و حفظ اصطلاح نمره نیست. شکست پایان بازی نیست.
## نگاشت سؤال‌ها
| سؤال | مرحله | پاسخ |
| --- | ---: | --- |
| castle-q1 | ۱ | exchange |
| castle-q2 | ۲ | regular |
| castle-q3 | ۳ | water |
| castle-q4 | ۴ | moves |
| castle-q5 | ۵ | no |
| castle-q6 | ۶ | less |
| castle-q7 | ۷ | valid |
| castle-q8 | ۸ | keep |
| castle-q9 | ۹ | no |
| castle-q10 | ۱۰ | 121 |
| castle-q11 | ۱۱ | b |
| castle-q12 | ۱۲ | 6 |
## امتیاز
`score = Math.round(correctCount × 100 / 12)`
۰، ۸، ۱۷، ۲۵، ۳۳، ۴۲، ۵۰، ۵۸، ۶۷، ۷۵، ۸۳، ۹۲، ۱۰۰.
کمتر از ۶۰ تکمیل نمی‌شود و پاداش ندارد، ولی توضیح سؤال‌ها برمی‌گردد. ۸ درست یک ستاره، ۹ یا ۱۰ دو ستاره، ۱۱ یا ۱۲ سه ستاره. پاداش پایه ۱۰۰ XP و ۵۰ سکه است. بعد از مرحله ۱۳ مرحله دیگری باز نمی‌شود.
ارسال فقط دوازده `{ questionId, answerId }` است. امتیاز و ستاره کلاینت پذیرفته نمی‌شود. پاسخ درست در GET عمومی نیست.