is_passed

This commit is contained in:
yanshaoting 2024-03-08 09:51:09 +08:00
parent af21c26b42
commit ac9565a588
2 changed files with 7 additions and 10 deletions

View File

@ -126,7 +126,7 @@ class MLPlay:
```json ```json
{ {
"frame": 15, "frame": 15,
"collision_mode": True, "collision_mode": "True",
"score": 8, "score": 8,
"score_to_pass": 10, "score_to_pass": 10,
"self_x": 100, "self_x": 100,
@ -234,14 +234,12 @@ class MLPlay:
{ {
"squid": "1P", "squid": "1P",
"score": 0, "score": 0,
"rank": 2, "rank": 2
"passed": false
}, },
{ {
"squid": "2P", "squid": "2P",
"score": 10, "score": 10,
"rank": 1, "rank": 1
"passed": false
} }
] ]
} }
@ -255,7 +253,6 @@ class MLPlay:
- `squid`:玩家編號 - `squid`:玩家編號
- `score`:吃到的食物總數 - `score`:吃到的食物總數
- `rank`:排名 - `rank`:排名
- `passed`:是否通關
--- ---

View File

@ -392,14 +392,14 @@ class SwimmingSquid(PaiaGame):
{ {
"player": get_ai_name(0), "player": get_ai_name(0),
"rank": self.squid1.rank, "rank": self.squid1.rank,
"score": self.squid1.score, "score": self.squid1.score
"passed": self.is_passed # "passed": self.is_passed
}, },
{ {
"player": get_ai_name(1), "player": get_ai_name(1),
"rank": self.squid2.rank, "rank": self.squid2.rank,
"score": self.squid2.score, "score": self.squid2.score
"passed": self.is_passed # "passed": self.is_passed
} }
] ]