clash/server/tests/test_games/construct.json
Gregor Zeitlinger 0a398584c5
Client (#90)
* fix build

* glcanvas is already present

* screen size

* minimize

* add test

* screen size

* cleanup

* use primitives directly

* avoid option in actions because mongo strips null values

* cleanup

* cleanup

* cleanup

* cleanup
2024-12-29 14:20:37 +01:00

521 lines
10 KiB
JSON

{
"state": "Playing",
"players": [
{
"name": null,
"id": 0,
"resources": {
"food": 2,
"wood": 7,
"ore": 7,
"ideas": 5,
"gold": 7,
"mood_tokens": 6,
"culture_tokens": 7
},
"resource_limit": {
"food": 2,
"wood": 7,
"ore": 7,
"ideas": 7,
"gold": 7,
"mood_tokens": 7,
"culture_tokens": 7
},
"cities": [
{
"city_pieces": {
"academy": null,
"market": null,
"obelisk": null,
"observatory": null,
"fortress": null,
"port": null,
"temple": null,
"wonders": []
},
"mood_state": "Happy",
"activations": 0,
"angry_activation": false,
"player_index": 0,
"position": "A1",
"port_position": null
},
{
"city_pieces": {
"academy": null,
"market": null,
"obelisk": null,
"observatory": null,
"fortress": null,
"port": null,
"temple": null,
"wonders": []
},
"mood_state": "Happy",
"activations": 8,
"angry_activation": false,
"player_index": 0,
"position": "C2",
"port_position": null
}
],
"units": [
{
"player_index": 0,
"position": "C2",
"unit_type": "Infantry",
"movement_restriction": "None",
"id": 0
},
{
"player_index": 0,
"position": "C2",
"unit_type": "Cavalry",
"movement_restriction": "None",
"id": 1
},
{
"player_index": 0,
"position": "C2",
"unit_type": "Leader",
"movement_restriction": "None",
"id": 2
},
{
"player_index": 0,
"position": "C2",
"unit_type": "Elephant",
"movement_restriction": "None",
"id": 3
},
{
"player_index": 0,
"position": "C2",
"unit_type": "Settler",
"movement_restriction": "None",
"id": 4
},
{
"player_index": 0,
"position": "C2",
"unit_type": "Settler",
"movement_restriction": "None",
"id": 5
},
{
"player_index": 0,
"position": "C2",
"unit_type": "Settler",
"movement_restriction": "None",
"id": 6
},
{
"player_index": 0,
"position": "C2",
"unit_type": "Settler",
"movement_restriction": "None",
"id": 7
}
],
"civilization": "test0",
"active_leader": null,
"available_leaders": [],
"advances": [
"Farming",
"Math",
"Mining"
],
"unlocked_special_advance": [],
"wonders": [],
"wonders_build": 0,
"leader_position": null,
"game_event_tokens": 2,
"influenced_buildings": 0,
"completed_objectives": [],
"captured_leaders": [],
"event_victory_points": 0.0,
"wonder_cards": [],
"available_settlements": 7,
"available_buildings": {
"academies": 5,
"markets": 5,
"obelisks": 5,
"observatories": 5,
"fortresses": 5,
"ports": 5,
"temples": 5
},
"available_units": {
"settlers": 0,
"infantry": 15,
"ships": 4,
"cavalry": 3,
"elephants": 3,
"leaders": 0
},
"collect_options": [
[
"Mountain",
[
{
"food": 0,
"wood": 0,
"ore": 1,
"ideas": 0,
"gold": 0,
"mood_tokens": 0,
"culture_tokens": 0
}
]
],
[
"Fertile",
[
{
"food": 1,
"wood": 0,
"ore": 0,
"ideas": 0,
"gold": 0,
"mood_tokens": 0,
"culture_tokens": 0
}
]
],
[
"Forest",
[
{
"food": 0,
"wood": 1,
"ore": 0,
"ideas": 0,
"gold": 0,
"mood_tokens": 0,
"culture_tokens": 0
}
]
]
],
"next_unit_id": 8
},
{
"name": null,
"id": 1,
"resources": {
"food": 2,
"wood": 7,
"ore": 7,
"ideas": 7,
"gold": 7,
"mood_tokens": 7,
"culture_tokens": 7
},
"resource_limit": {
"food": 2,
"wood": 7,
"ore": 7,
"ideas": 7,
"gold": 7,
"mood_tokens": 7,
"culture_tokens": 7
},
"cities": [
{
"city_pieces": {
"academy": null,
"market": null,
"obelisk": null,
"observatory": null,
"fortress": null,
"port": null,
"temple": null,
"wonders": []
},
"mood_state": "Angry",
"activations": 2,
"angry_activation": false,
"player_index": 1,
"position": "C1",
"port_position": null
}
],
"units": [
{
"player_index": 1,
"position": "C1",
"unit_type": "Infantry",
"movement_restriction": "None",
"id": 0
},
{
"player_index": 1,
"position": "C1",
"unit_type": "Infantry",
"movement_restriction": "None",
"id": 1
}
],
"civilization": "test1",
"active_leader": null,
"available_leaders": [],
"advances": [
"Farming",
"Mining"
],
"unlocked_special_advance": [],
"wonders": [],
"wonders_build": 0,
"leader_position": null,
"game_event_tokens": 3,
"influenced_buildings": 0,
"completed_objectives": [],
"captured_leaders": [],
"event_victory_points": 0.0,
"wonder_cards": [],
"available_settlements": 7,
"available_buildings": {
"academies": 5,
"markets": 5,
"obelisks": 5,
"observatories": 5,
"fortresses": 5,
"ports": 5,
"temples": 5
},
"available_units": {
"settlers": 4,
"infantry": 14,
"ships": 4,
"cavalry": 4,
"elephants": 4,
"leaders": 1
},
"collect_options": [
[
"Mountain",
[
{
"food": 0,
"wood": 0,
"ore": 1,
"ideas": 0,
"gold": 0,
"mood_tokens": 0,
"culture_tokens": 0
}
]
],
[
"Fertile",
[
{
"food": 1,
"wood": 0,
"ore": 0,
"ideas": 0,
"gold": 0,
"mood_tokens": 0,
"culture_tokens": 0
}
]
],
[
"Forest",
[
{
"food": 0,
"wood": 1,
"ore": 0,
"ideas": 0,
"gold": 0,
"mood_tokens": 0,
"culture_tokens": 0
}
]
]
],
"next_unit_id": 2
}
],
"map": {
"tiles": [
[
"A1",
"Fertile"
],
[
"A2",
"Water"
],
[
"A3",
{
"Exhausted": "Forest"
}
],
[
"B1",
"Mountain"
],
[
"B2",
"Forest"
],
[
"B3",
"Fertile"
],
[
"C1",
"Barren"
],
[
"C2",
"Forest"
],
[
"C3",
"Water"
],
[
"D2",
"Water"
]
]
},
"starting_player_index": 0,
"current_player_index": 0,
"action_log": [
{
"Playing": {
"IncreaseHappiness": {
"happiness_increases": [
[
"A1",
0
],
[
"C2",
1
]
]
}
}
},
{
"Playing": {
"Advance": {
"advance": "Math",
"payment": {
"food": 0,
"wood": 0,
"ore": 0,
"ideas": 2,
"gold": 0,
"mood_tokens": 0,
"culture_tokens": 0
}
}
}
}
],
"action_log_index": 2,
"log": [
"The game has started",
"Age 1 has started",
"Round 1/3",
"Player1 increased happiness in the city at C2 by 1 steps, making it Happy",
"Player1 paid 2 ideas to get the Math advance"
],
"undo_limit": 0,
"played_once_per_turn_actions": [],
"actions_left": 1,
"successful_cultural_influence": false,
"round": 1,
"age": 1,
"messages": [
"The game has started"
],
"dice_roll_outcomes": [
1,
1,
10,
10,
10,
10,
10,
10,
10,
10
],
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
],
"wonder_amount_left": 1,
"undo_context_stack": [
{
"Recruit": {
"replaced_units": [],
"replaced_leader": null
}
},
{
"Recruit": {
"replaced_units": [],
"replaced_leader": null
}
},
{
"Recruit": {
"replaced_units": [],
"replaced_leader": null
}
},
{
"Recruit": {
"replaced_units": [],
"replaced_leader": null
}
},
{
"Recruit": {
"replaced_units": [],
"replaced_leader": null
}
},
{
"Recruit": {
"replaced_units": [],
"replaced_leader": null
}
},
{
"Recruit": {
"replaced_units": [],
"replaced_leader": null
}
},
{
"Recruit": {
"replaced_units": [],
"replaced_leader": null
}
},
{
"Recruit": {
"replaced_units": [],
"replaced_leader": null
}
},
{
"Recruit": {
"replaced_units": [],
"replaced_leader": null
}
}
]
}