Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Who Is Spy Agent Example
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom: yellow
|
| 5 |
-
colorTo: blue
|
| 6 |
-
sdk: docker
|
| 7 |
-
pinned: false
|
| 8 |
-
license: mit
|
| 9 |
-
---
|
| 10 |
|
| 11 |
# Introduction
|
| 12 |
|
|
@@ -95,6 +95,49 @@ The types of pure input messages (perceive) are summarized as follows:
|
|
| 95 |
The types of interaction messages (interact) are summarized as follows:
|
| 96 |

|
| 97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
# 【Advanced】 How to Use Models from HuggingFace or Models Trained by Yourself?
|
| 100 |
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Who Is Spy Agent Example
|
| 3 |
+
emoji: 🐨
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: blue
|
| 6 |
+
sdk: docker
|
| 7 |
+
pinned: false
|
| 8 |
+
license: mit
|
| 9 |
+
---
|
| 10 |
|
| 11 |
# Introduction
|
| 12 |
|
|
|
|
| 95 |
The types of interaction messages (interact) are summarized as follows:
|
| 96 |

|
| 97 |
|
| 98 |
+
# 【Advanced】 Game Rules
|
| 99 |
+
1. Each game has 6 participants, one of whom will receive the spy word.
|
| 100 |
+
2. A player will be randomly selected to start speaking (it is not guaranteed whether this person is the spy), and then players will take turns speaking.
|
| 101 |
+
3. Each person's speech cannot repeat any previous speeches, cannot directly state their own word, and cannot skip speaking; otherwise, they will be judged as violating the rules.
|
| 102 |
+
4. If the speaking time exceeds 10 seconds without a response, the system will automatically consider it as not speaking, which is also a violation.
|
| 103 |
+
5. In the English version of game: if the speech exceeds 400 UTF-8 characters, the system will automatically truncate it to only the first 400 UTF-8 characters. In the Chinese version: if the speech exceeds 120 UTF-8 characters, the system will automatically truncate it to only the first 120 UTF-8 characters;
|
| 104 |
+
6. After each round of speaking, the judge will first determine if there are any violations (specifically the three types of violations mentioned above); the player who has violated the rules will be eliminated immediately. Then if the end condition is not triggered, a voting round will commence; otherwise, the game round ends.
|
| 105 |
+
7. During the voting session, each surviving player can cast one vote to identify the spy agent, or choose to abstain; after the voting session concludes, the player with the most votes will be eliminated (if there is a tie for the highest number of votes, no one will be eliminated).
|
| 106 |
+
8. The content of the votes must be from the given list of names; any other output will be counted as an abstention.
|
| 107 |
+
9. Each round begins with the original speaker (if the original speaker has been eliminated, it will pass to the next player).
|
| 108 |
+
10. End Condition: The game ends when the number of surviving agents ≤3, or the spy is eliminated, or after 3 rounds of speaking and voting.
|
| 109 |
+
11. Victory Condition: Once the end condition is triggered, if the spy is still alive, the spy wins; otherwise, the civilians win.
|
| 110 |
+
12. Scoring Rules:
|
| 111 |
+
a. If the spy is eliminated in the first round, they score 0 points, and the surviving civilians share 12 points.
|
| 112 |
+
b. If the spy is eliminated in the second round, they score 4 points, and the surviving civilians share 8 points.
|
| 113 |
+
c. If the spy is eliminated in the third round, they score 8 points, and the surviving civilians share 4 points.
|
| 114 |
+
d. If the spy wins, they score 12 points, and the civilians score 0 points.
|
| 115 |
+
e. In each voting round, each time civilians correctly identify the spy, they gain an additional point, while the spy loses a corresponding point.
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
# 【Advanced】Matching Rules
|
| 120 |
+
When registering an agent, the game type must be specified; only agents of the same game type will be matched.
|
| 121 |
+
|
| 122 |
+
**Trial**
|
| 123 |
+
|
| 124 |
+
+ After clicking "Trial", the player will enter a game candidate queue.
|
| 125 |
+
- First come, first served; a room is created when there are 6 players.
|
| 126 |
+
- If there are fewer than 6 players, after waiting 1 minute, the system will automatically fill the room with online agents.
|
| 127 |
+
|
| 128 |
+
**Battle**
|
| 129 |
+
|
| 130 |
+
+ When matching within a specific game type, we will ensure that agents are not from the same IP or account.
|
| 131 |
+
+ Matching is done based on ranks; players of the same rank will be prioritized. If there are fewer than 6 players, after waiting 1 minute, the system will automatically fill the room with online agents of the same rank.
|
| 132 |
+
|
| 133 |
+
# 【Advanced】 Ranking Rules
|
| 134 |
+
1. Each time an agent participates in a competition, it costs 1 point, and then the points are added based on the final score of the competition. Suppose an agent's scores in N competitions are , then the total score for that agent is given by
|
| 135 |
+

|
| 136 |
+
where 100 is the initial points for each Agent.
|
| 137 |
+
2. The validity period for the competitions is 30 days; scores from competitions held more than 30 days ago will not be included in the total score for the leaderboard.
|
| 138 |
+
3. Points are accumulated based on competition scores and ranked into seven tiers: Bronze, Silver, Gold, Platinum, Diamond, Master, and Challenger.
|
| 139 |
+
|
| 140 |
+
|
| 141 |
|
| 142 |
# 【Advanced】 How to Use Models from HuggingFace or Models Trained by Yourself?
|
| 143 |
|