feat: add private and profile

This commit is contained in:
2026-06-17 11:32:51 +03:30
parent 02060a4dc0
commit 0827858752
23 changed files with 972 additions and 25 deletions
+2
View File
@@ -48,6 +48,7 @@ type HandResult struct {
Kot bool `json:"kot"` // کُت: تیم بازنده هیچ دستی نبرد
HakemKot bool `json:"hakem_kot"` // حاکم‌کُت: تیمِ حاکم کُت شد (۳ امتیاز)
Points int `json:"points"` // امتیاز این هَند (۱ معمولی، ۲ کُت، ۳ حاکم‌کُت)
Hakem int `json:"hakem"` // حاکمِ همین هَند (پیش از چرخش)
NextHakem int `json:"next_hakem"`
}
@@ -289,6 +290,7 @@ func (g *Game) checkHandOver() {
Kot: kot,
HakemKot: points == 3,
Points: points,
Hakem: g.Hakem, // حاکمِ این هَند (هنوز چرخش نکرده)
NextHakem: nextHakem,
}