Added time control mechanics to the rules

This commit is contained in:
2026-11-06 22:29:07 +03:30
parent 48c0ad1265
commit 9921e64598
11 changed files with 560 additions and 39 deletions
+78 -3
View File
@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"game_id": "chess",
"version": "1.6.0",
"version": "1.7.0",
"protocol": "socketio",
"protocol_version": 1,
"title": {
@@ -41,6 +41,27 @@
"en": "Classic"
},
"default": true
},
{
"id": "blitz",
"title": {
"fa": "بلیتس (Blitz)",
"en": "Blitz"
}
},
{
"id": "bullet",
"title": {
"fa": "بولت (Bullet)",
"en": "Bullet"
}
},
{
"id": "rapid",
"title": {
"fa": "رپید (Rapid)",
"en": "Rapid"
}
}
],
"options": [
@@ -56,6 +77,60 @@
"en": "Turn time"
},
"rated_safe": true
},
{
"id": "time_control",
"type": "enum",
"title": {
"fa": "کنترل زمان",
"en": "Time Control"
},
"values": [
{
"id": "1m",
"title": {
"fa": "۱ دقیقه (Bullet)",
"en": "1 min (Bullet)"
}
},
{
"id": "1m_1s",
"title": {
"fa": "۱ دقیقه + ۱ ثانیه پاداش (Bullet)",
"en": "1 min + 1s (Bullet)"
}
},
{
"id": "3m",
"title": {
"fa": "۳ دقیقه (Blitz)",
"en": "3 min (Blitz)"
}
},
{
"id": "3m_2s",
"title": {
"fa": "۳ دقیقه + ۲ ثانیه پاداش (Blitz)",
"en": "3 min + 2s (Blitz)"
}
},
{
"id": "10m",
"title": {
"fa": "۱۰ دقیقه (Rapid)",
"en": "10 min (Rapid)"
}
},
{
"id": "15m_10s",
"title": {
"fa": "۱۵ دقیقه + ۱۰ ثانیه پاداش (Rapid)",
"en": "15 min + 10s (Rapid)"
}
}
],
"default": "3m",
"rated_safe": true
}
],
"cosmetic_slots": [],
@@ -81,14 +156,14 @@
],
"achievements": [],
"client": {
"entry": "https://g.3miz.ir/chess/1.6.0/index.html",
"entry": "https://g.3miz.ir/chess/1.7.0/index.html",
"integrity": "sha384-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"aspect": "1:1",
"min_width_px": 320,
"supports_portrait": true
},
"server": {
"image": "registry.3miz.ir/games/chess:1.6.0",
"image": "registry.3miz.ir/games/chess:1.7.0",
"max_tables_per_instance": 500,
"checkpoint_every_inputs": 20,
"snapshot_every_messages": 50,