Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- squid_game.py +6 -6
squid_game.py
CHANGED
|
@@ -96,7 +96,7 @@ iface = gr.Interface(
|
|
| 96 |
gr.Textbox(
|
| 97 |
label="Players' Current Squids",
|
| 98 |
placeholder="0,0",
|
| 99 |
-
value="0,0",
|
| 100 |
info="""Enter each player's current squids, separated by commas.
|
| 101 |
Example: '1,0,1,2,0' means:
|
| 102 |
- Player 1 has 1 squid
|
|
@@ -109,8 +109,8 @@ Example: '1,0,1,2,0' means:
|
|
| 109 |
label="Total Squids in Game",
|
| 110 |
value=2,
|
| 111 |
minimum=0,
|
| 112 |
-
step=1,
|
| 113 |
-
precision=0,
|
| 114 |
info="The total number of squids to be distributed (must be ≥ sum of current squids)"
|
| 115 |
),
|
| 116 |
gr.Textbox(
|
|
@@ -144,9 +144,9 @@ Edit these values to match your game rules."""
|
|
| 144 |
""",
|
| 145 |
examples=[
|
| 146 |
# Common scenarios with descriptive labels
|
| 147 |
-
["0,0",
|
| 148 |
-
["1,0,1",
|
| 149 |
-
["2,0,2,0",
|
| 150 |
]
|
| 151 |
)
|
| 152 |
|
|
|
|
| 96 |
gr.Textbox(
|
| 97 |
label="Players' Current Squids",
|
| 98 |
placeholder="0,0",
|
| 99 |
+
value="0,0",
|
| 100 |
info="""Enter each player's current squids, separated by commas.
|
| 101 |
Example: '1,0,1,2,0' means:
|
| 102 |
- Player 1 has 1 squid
|
|
|
|
| 109 |
label="Total Squids in Game",
|
| 110 |
value=2,
|
| 111 |
minimum=0,
|
| 112 |
+
step=1,
|
| 113 |
+
precision=0,
|
| 114 |
info="The total number of squids to be distributed (must be ≥ sum of current squids)"
|
| 115 |
),
|
| 116 |
gr.Textbox(
|
|
|
|
| 144 |
""",
|
| 145 |
examples=[
|
| 146 |
# Common scenarios with descriptive labels
|
| 147 |
+
["0,0", 2, DEFAULT_TIER_MAP], # Basic 2-player game
|
| 148 |
+
["1,0,1", 4, DEFAULT_TIER_MAP], # 3 players, some squids distributed
|
| 149 |
+
["2,0,2,0", 6, DEFAULT_TIER_MAP], # 4 players, mixed distribution
|
| 150 |
]
|
| 151 |
)
|
| 152 |
|