Skip to content

Commit

Permalink
cultural influence
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Jan 2, 2025
1 parent e75ff5e commit 7913712
Show file tree
Hide file tree
Showing 48 changed files with 53 additions and 53 deletions.
6 changes: 3 additions & 3 deletions server/tests/game_api_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ fn basic_actions() {

let construct_wonder_action = Action::Playing(Custom(ConstructWonder {
city_position,
wonder: String::from("X"),
wonder: String::from("Pyramids"),
payment: ResourcePile::new(1, 3, 3, 0, 2, 0, 4),
}));
let mut game = game_api::execute_action(game, construct_wonder_action, 0);
Expand All @@ -140,7 +140,7 @@ fn basic_actions() {
assert_eq!(10.0, player.victory_points());
assert_eq!(ResourcePile::empty(), player.resources);
assert_eq!(1, player.wonders_build);
assert_eq!(vec![String::from("X")], player.wonders);
assert_eq!(vec![String::from("Pyramids")], player.wonders);
assert_eq!(
1,
player
Expand Down Expand Up @@ -543,7 +543,7 @@ fn test_wonder() {
"wonder",
Action::Playing(Custom(ConstructWonder {
city_position: Position::from_offset("A1"),
wonder: String::from("X"),
wonder: String::from("Pyramids"),
payment: ResourcePile::new(2, 3, 3, 0, 0, 0, 4),
})),
0,
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/change_government.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
"captured_leaders": [],
"event_victory_points": 0.0,
"wonder_cards": [
"X"
"Pyramids"
],
"available_settlements": 7,
"available_buildings": {
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/change_government.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
"captured_leaders": [],
"event_victory_points": 0.0,
"wonder_cards": [
"X"
"Pyramids"
],
"available_settlements": 7,
"available_buildings": {
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/collect.json
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/collect.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/construct.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/construct.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/construct_port.json
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/construct_port.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/cultural_influence_attempt.json
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/cultural_influence_resolution.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/determine_first_player.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/direct_capture_city.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/direct_capture_city.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/dont_retreat.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/dont_retreat.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/first_combat_round_no_hits.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/found_city.json
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/found_city.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/free_advance.json
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/free_advance.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/illegal_free_advance.json
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/movement.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/movement.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/raze_city.json
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/raze_city.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/raze_city_decline.json
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/raze_city_decline.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/recruit.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/recruit.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/recruit_combat.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@
"dice_roll_log": [],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/recruit_combat.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/remove_casualties_attacker.json
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/remove_casualties_defender.json
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/retreat.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
2 changes: 1 addition & 1 deletion server/tests/test_games/retreat.outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
],
"dropped_players": [],
"wonders_left": [
"X"
"Pyramids"
],
"wonder_amount_left": 1,
"undo_context_stack": [
Expand Down
Loading

0 comments on commit 7913712

Please sign in to comment.