Bridge changes: - Wait for at least one user to JOIN before starting monop - Ensures observer is in channel to see all setup messages Parser changes: - Handle 'Player N, say me' even without prior 'How many players?' - Infer num_players_expected from highest player number seen - Emit state during setup phase run_game.py changes: - 3s stagger between bot joins so setup is visible in web UI - Observer connects before bots to catch all registration messages
247 lines
No EOL
4.3 KiB
JSON
247 lines
No EOL
4.3 KiB
JSON
{
|
|
"players": [
|
|
{
|
|
"name": "Player 1",
|
|
"number": 1,
|
|
"money": 1500,
|
|
"location": 0,
|
|
"inJail": false,
|
|
"jailTurns": 0,
|
|
"doublesCount": 0,
|
|
"getOutOfJailFreeCards": 0
|
|
},
|
|
{
|
|
"name": "Player 2",
|
|
"number": 2,
|
|
"money": 1500,
|
|
"location": 0,
|
|
"inJail": false,
|
|
"jailTurns": 0,
|
|
"doublesCount": 0,
|
|
"getOutOfJailFreeCards": 0
|
|
}
|
|
],
|
|
"currentPlayer": null,
|
|
"squares": [
|
|
{
|
|
"id": 0,
|
|
"name": "=== GO ===",
|
|
"type": "safe"
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "Mediterranean ave. (P)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "Community Chest i",
|
|
"type": "cc"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "Baltic ave. (P)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"name": "Income Tax",
|
|
"type": "tax"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"name": "Reading RR",
|
|
"type": "railroad"
|
|
},
|
|
{
|
|
"id": 6,
|
|
"name": "Oriental ave. (L)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 7,
|
|
"name": "Chance i",
|
|
"type": "chance"
|
|
},
|
|
{
|
|
"id": 8,
|
|
"name": "Vermont ave. (L)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 9,
|
|
"name": "Connecticut ave. (L)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 10,
|
|
"name": "Just Visiting",
|
|
"type": "safe"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"name": "St. Charles pl. (V)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 12,
|
|
"name": "Electric Co.",
|
|
"type": "utility"
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "States ave. (V)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 14,
|
|
"name": "Virginia ave. (V)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 15,
|
|
"name": "Pennsylvania RR",
|
|
"type": "railroad"
|
|
},
|
|
{
|
|
"id": 16,
|
|
"name": "St. James pl. (O)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 17,
|
|
"name": "Community Chest ii",
|
|
"type": "cc"
|
|
},
|
|
{
|
|
"id": 18,
|
|
"name": "Tennessee ave. (O)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 19,
|
|
"name": "New York ave. (O)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 20,
|
|
"name": "Free Parking",
|
|
"type": "safe"
|
|
},
|
|
{
|
|
"id": 21,
|
|
"name": "Kentucky ave. (R)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 22,
|
|
"name": "Chance ii",
|
|
"type": "chance"
|
|
},
|
|
{
|
|
"id": 23,
|
|
"name": "Indiana ave. (R)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 24,
|
|
"name": "Illinois ave. (R)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 25,
|
|
"name": "B&O RR",
|
|
"type": "railroad"
|
|
},
|
|
{
|
|
"id": 26,
|
|
"name": "Atlantic ave. (Y)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 27,
|
|
"name": "Ventnor ave. (Y)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 28,
|
|
"name": "Water Works",
|
|
"type": "utility"
|
|
},
|
|
{
|
|
"id": 29,
|
|
"name": "Marvin Gardens (Y)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 30,
|
|
"name": "GO TO JAIL",
|
|
"type": "gotojail"
|
|
},
|
|
{
|
|
"id": 31,
|
|
"name": "Pacific ave. (G)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 32,
|
|
"name": "N. Carolina ave. (G)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 33,
|
|
"name": "Community Chest iii",
|
|
"type": "cc"
|
|
},
|
|
{
|
|
"id": 34,
|
|
"name": "Pennsylvania ave. (G)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 35,
|
|
"name": "Short Line RR",
|
|
"type": "railroad"
|
|
},
|
|
{
|
|
"id": 36,
|
|
"name": "Chance iii",
|
|
"type": "chance"
|
|
},
|
|
{
|
|
"id": 37,
|
|
"name": "Park place (D)",
|
|
"type": "property"
|
|
},
|
|
{
|
|
"id": 38,
|
|
"name": "Luxury Tax",
|
|
"type": "tax"
|
|
},
|
|
{
|
|
"id": 39,
|
|
"name": "Boardwalk (D)",
|
|
"type": "property"
|
|
}
|
|
],
|
|
"log": [
|
|
{
|
|
"text": "Game for 3 players",
|
|
"player": null,
|
|
"timestamp": "2026-02-21 11:33:22"
|
|
},
|
|
{
|
|
"text": "Waiting for Player 1 to register...",
|
|
"player": null,
|
|
"timestamp": "2026-02-21 11:33:22"
|
|
},
|
|
{
|
|
"text": "Waiting for Player 2 to register...",
|
|
"player": null,
|
|
"timestamp": "2026-02-21 11:33:23"
|
|
}
|
|
],
|
|
"phase": "setup",
|
|
"numPlayersExpected": 3,
|
|
"lastUpdated": "2026-02-21T11:33:23.055895+00:00"
|
|
} |