serialize game as string - because node handles json differently (#240)

This commit is contained in:
Gregor Zeitlinger 2025-05-03 18:50:07 +02:00 • committed by GitHub
commit 0a28774a69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
382 changed files with 82 additions and 1063 deletions

View file

@ -68,6 +68,14 @@ description = "Run AI client with profiling"
run = ["cargo run --release --package client --features profiling --bin local_client -- ai"]
dir = "client"
[tasks.build-remote-server]
description = "Build remote server"
run = "./scripts/build-remote-server.sh test"
[tasks.build-remote-client]
description = "Build remote client"
run = "./scripts/build-remote-client.sh"
[tasks.test-pubish-server]
description = "Test publish server (the real one is done in GitHub Actions)"
run = "./scripts/publish-server.sh test"

View file

@ -172,6 +172,8 @@ impl City {
#[derive(Serialize, Deserialize, Clone, PartialEq)]
pub struct CityData {
#[serde(default)]
#[serde(skip_serializing_if = "CityPiecesData::is_empty")]
city_pieces: CityPiecesData,
mood_state: MoodState,
#[serde(default)]

View file

@ -178,6 +178,20 @@ pub struct CityPiecesData {
wonders: Vec<Wonder>,
}
impl CityPiecesData {
#[must_use]
pub fn is_empty(&self) -> bool {
self.academy.is_none()
&& self.market.is_none()
&& self.obelisk.is_none()
&& self.observatory.is_none()
&& self.fortress.is_none()
&& self.port.is_none()
&& self.temple.is_none()
&& self.wonders.is_empty()
}
}
pub struct DestroyedStructures {
pub pieces: CityPieces,
pub cities: u8,

View file

@ -12,16 +12,16 @@ pub struct PlayerMetaData {
name: String,
}
fn get_game(data: JsValue) -> Game {
fn get_game(data: String) -> Game {
console_error_panic_hook::set_once();
Game::from_data(
serde_wasm_bindgen::from_value(data).expect("game should be of type game data"),
serde_json::from_str(&data).expect("Could not deserialize game data"),
Cache::new(),
)
}
fn from_game(game: Game) -> JsValue {
serde_wasm_bindgen::to_value(&game.data()).expect("game should be serializable")
fn from_game(game: Game) -> String {
serde_json::to_string(&game.data()).expect("game should be serializable")
}
#[wasm_bindgen]
@ -31,13 +31,13 @@ pub async fn init(
_options: JsValue,
seed: String,
_creator: JsValue,
) -> JsValue {
) -> String {
let game = game_api::init(player_amount, seed);
from_game(game)
}
#[wasm_bindgen(js_name = move)]
pub fn execute_move(game: JsValue, move_data: JsValue, player_index: usize) -> JsValue {
pub fn execute_move(game: String, move_data: JsValue, player_index: usize) -> String {
let game = get_game(game);
let action = serde_wasm_bindgen::from_value(move_data).expect("move should be of type action");
let game = game_api::execute(game, action, player_index);
@ -45,27 +45,27 @@ pub fn execute_move(game: JsValue, move_data: JsValue, player_index: usize) -> J
}
#[wasm_bindgen]
pub fn ended(game: JsValue) -> JsValue {
pub fn ended(game: String) -> JsValue {
let game = get_game(game);
JsValue::from_bool(game_api::ended(&game))
}
#[wasm_bindgen]
pub fn scores(game: JsValue) -> JsValue {
pub fn scores(game: String) -> JsValue {
let game = get_game(game);
let scores = game_api::scores(&game);
serde_wasm_bindgen::to_value(&scores).expect("scores should be serializable")
}
#[wasm_bindgen(js_name = "dropPlayer")]
pub async fn drop_player(game: JsValue, player_index: usize) -> JsValue {
pub async fn drop_player(game: String, player_index: usize) -> String {
let game = get_game(game);
let game = game_api::drop_player(game, player_index);
from_game(game)
}
#[wasm_bindgen(js_name = "currentPlayer")]
pub fn current_player(game: JsValue) -> JsValue {
pub fn current_player(game: String) -> JsValue {
let game = get_game(game);
let player_index = game_api::current_player(&game);
match player_index {
@ -75,14 +75,14 @@ pub fn current_player(game: JsValue) -> JsValue {
}
#[wasm_bindgen(js_name = "logLength")]
pub fn log_length(game: JsValue) -> JsValue {
pub fn log_length(game: String) -> JsValue {
let game = get_game(game);
let log_length = game_api::log_length(&game);
JsValue::from_f64(log_length as f64)
}
#[wasm_bindgen(js_name = "logSlice")]
pub fn log_slice(game: JsValue, options: JsValue) -> JsValue {
pub fn log_slice(game: String, options: JsValue) -> JsValue {
let game = get_game(game);
let options = serde_wasm_bindgen::from_value(options).expect("options should be serializable");
let log = game_api::log_slice(&game, &options);
@ -90,7 +90,7 @@ pub fn log_slice(game: JsValue, options: JsValue) -> JsValue {
}
#[wasm_bindgen(js_name = "setPlayerMetaData")]
pub fn set_player_meta_data(game: JsValue, player_index: usize, meta_data: JsValue) -> JsValue {
pub fn set_player_meta_data(game: String, player_index: usize, meta_data: JsValue) -> String {
let game = get_game(game);
let name = serde_wasm_bindgen::from_value::<PlayerMetaData>(meta_data)
.expect("meta data should be of type player meta data")
@ -100,14 +100,14 @@ pub fn set_player_meta_data(game: JsValue, player_index: usize, meta_data: JsVal
}
#[wasm_bindgen]
pub fn rankings(game: JsValue) -> JsValue {
pub fn rankings(game: String) -> JsValue {
let game = get_game(game);
let rankings = game_api::rankings(&game);
serde_wasm_bindgen::to_value(&rankings).expect("rankings should be serializable")
}
#[wasm_bindgen(js_name = "roundNumber")]
pub fn round_number(game: JsValue) -> JsValue {
pub fn round_number(game: String) -> JsValue {
let game = get_game(game);
let round = game_api::round(&game);
match round {
@ -117,21 +117,21 @@ pub fn round_number(game: JsValue) -> JsValue {
}
#[wasm_bindgen]
pub fn factions(game: JsValue) -> JsValue {
pub fn factions(game: String) -> JsValue {
let game = get_game(game);
let factions = game_api::civilizations(game);
serde_wasm_bindgen::to_value(&factions).expect("faction list should be serializable")
}
#[wasm_bindgen(js_name = "stripSecret")]
pub fn strip_secret(game: JsValue, player_index: Option<usize>) -> JsValue {
pub fn strip_secret(game: String, player_index: Option<usize>) -> String {
let game = get_game(game);
let game = game_api::strip_secret(game, player_index);
from_game(game)
}
#[wasm_bindgen]
pub fn messages(game: JsValue) -> JsValue {
pub fn messages(game: String) -> JsValue {
let game = get_game(game);
let messages = game_api::messages(game);
serde_wasm_bindgen::to_value(&messages).expect("messages should be serializable")

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -109,7 +107,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -107,7 +105,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -28,17 +28,14 @@
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B3"
}
@ -127,7 +124,6 @@
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A3"
},

View file

@ -28,17 +28,14 @@
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B3"
}
@ -121,7 +118,6 @@
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A3"
},

View file

@ -28,17 +28,14 @@
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B3"
}
@ -127,7 +124,6 @@
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A3"
},

View file

@ -30,17 +30,14 @@
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B3"
}
@ -126,7 +123,6 @@
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A3"
},

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -111,7 +110,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}
@ -147,7 +145,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -35,7 +34,6 @@
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}
@ -118,7 +116,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -15,7 +15,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D1"
}
@ -50,7 +49,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D8"
}

View file

@ -15,7 +15,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D1"
}
@ -50,7 +49,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D8"
}

View file

@ -27,7 +27,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -115,7 +114,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -35,7 +34,6 @@
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -27,12 +27,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -113,7 +111,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,17 +23,14 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,17 +23,14 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -111,7 +110,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -108,7 +107,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -109,7 +107,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -107,7 +105,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -111,7 +110,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}
@ -147,7 +145,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -103,7 +102,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}
@ -139,7 +137,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
}
@ -104,7 +103,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
}
@ -106,7 +105,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -28,17 +28,14 @@
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B3"
}
@ -127,7 +124,6 @@
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A3"
},

View file

@ -35,17 +35,14 @@
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B2"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B3"
}
@ -123,7 +120,6 @@
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A3"
},

View file

@ -21,7 +21,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -109,7 +108,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -21,7 +21,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -107,7 +106,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -113,7 +111,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -110,7 +108,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}
@ -357,4 +354,4 @@
4,
2
]
}
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -89,7 +88,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}
@ -129,7 +127,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -88,7 +87,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}
@ -128,7 +126,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -91,7 +90,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}
@ -131,7 +129,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -89,7 +88,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}
@ -129,7 +127,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -110,7 +108,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -114,7 +112,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -89,7 +88,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}
@ -129,7 +127,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -88,7 +87,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}
@ -128,7 +126,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}

View file

@ -27,12 +27,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -113,7 +111,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,17 +23,14 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
},
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -110,7 +108,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "C2"
}
@ -108,7 +106,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -47,7 +47,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}
@ -123,7 +122,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
},

View file

@ -47,7 +47,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}
@ -126,7 +125,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
},

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -114,7 +113,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -114,7 +113,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -111,7 +110,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -111,7 +110,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"activations": 1,
"position": "A1"
@ -117,7 +116,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -113,7 +112,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -117,7 +116,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"activations": 4,
"position": "B3"
@ -145,7 +144,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"activations": 5,
"position": "B3"
@ -148,7 +147,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -108,7 +107,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -108,7 +107,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A3"
},
@ -122,7 +120,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "B3"

View file

@ -23,12 +23,10 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A3"
},
@ -122,7 +120,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "B3"
@ -429,4 +426,4 @@
"wonders_left": [
"Pyramids"
]
}
}

View file

@ -47,7 +47,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"position": "B3"
}
@ -144,7 +143,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C1"
},

View file

@ -47,7 +47,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"position": "B3"
}

View file

@ -47,7 +47,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}
@ -123,7 +122,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
},

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "B3"
}
@ -128,7 +127,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
},

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -148,7 +147,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -106,7 +106,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -206,7 +205,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"
@ -453,4 +451,4 @@
"wonders_left": [
"Pyramids"
]
}
}

View file

@ -48,7 +48,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -148,7 +147,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"
@ -487,4 +485,4 @@
"wonders_left": [
"Pyramids"
]
}
}

View file

@ -48,7 +48,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -132,7 +131,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -146,7 +145,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -48,7 +48,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -145,7 +144,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -146,7 +145,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -48,7 +48,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -145,7 +144,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -145,7 +144,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -48,7 +48,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"activations": 4,
"position": "B3"
@ -143,7 +142,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -146,7 +145,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -48,7 +48,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Happy",
"activations": 4,
"position": "B3"
@ -144,7 +143,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"
@ -358,4 +356,4 @@
10
],
"rng": "234162992961072890508432380903651342097"
}
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D1"
}
@ -61,7 +60,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"activations": 1,
"position": "D8"

View file

@ -19,7 +19,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D1"
}
@ -55,7 +54,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"activations": 1,
"position": "D8"

View file

@ -21,7 +21,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D1"
}
@ -56,7 +55,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "D8"
}

View file

@ -17,7 +17,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D1"
}
@ -48,7 +47,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "D8"
}

View file

@ -47,7 +47,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"position": "B3"
}
@ -143,7 +142,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C1"
},

View file

@ -47,7 +47,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"position": "B3"
}
@ -144,7 +143,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C1"
},
@ -387,4 +385,4 @@
"wonders_left": [
"Pyramids"
]
}
}

View file

@ -47,7 +47,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"position": "B3"
}
@ -144,7 +143,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C1"
},
@ -476,4 +474,4 @@
"wonders_left": [
"Pyramids"
]
}
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D1"
}
@ -61,7 +60,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "D8"
}

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -139,7 +138,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -50,7 +50,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -150,7 +149,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"
@ -366,4 +364,4 @@
"wonders_left": [
"Pyramids"
]
}
}

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -151,7 +150,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -154,7 +153,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -151,7 +150,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -49,7 +49,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -154,7 +153,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"
@ -411,4 +409,4 @@
"wonders_left": [
"Pyramids"
]
}
}

View file

@ -66,7 +66,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "D8"
}

View file

@ -67,7 +67,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "D8"
}

View file

@ -23,22 +23,18 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D6"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C6"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "B6"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "E6"
}
@ -76,7 +72,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "D8"
}

View file

@ -19,17 +19,14 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D6"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C6"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "E6"
}
@ -67,7 +64,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "D8"
}

View file

@ -55,17 +55,14 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D6"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C6"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "E6"
}
@ -103,7 +100,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "D8"
}

View file

@ -19,17 +19,14 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "D6"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "C6"
},
{
"city_pieces": {},
"mood_state": "Happy",
"position": "E6"
}
@ -68,7 +65,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Neutral",
"position": "D8"
}

View file

@ -21,7 +21,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -47,7 +46,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -136,7 +134,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"

View file

@ -50,7 +50,6 @@
"position": "B1"
},
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 4,
"angry_activation": true,
@ -148,7 +147,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"activations": 2,
"position": "C1"
@ -311,11 +309,11 @@
},
{
"op": "remove",
"path": "/players/0/cities/0/city_pieces/academy"
"path": "/players/0/cities/0/activations"
},
{
"op": "remove",
"path": "/players/0/cities/0/activations"
"path": "/players/0/cities/0/city_pieces"
},
{
"op": "replace",
@ -382,4 +380,4 @@
"wonders_left": [
"Pyramids"
]
}
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -109,7 +108,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

View file

@ -23,7 +23,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Happy",
"position": "A1"
},
@ -113,7 +112,6 @@
},
"cities": [
{
"city_pieces": {},
"mood_state": "Angry",
"position": "C1"
}

Some files were not shown because too many files have changed in this diff Show more