-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_toolbox.py
More file actions
27 lines (19 loc) · 848 Bytes
/
test_toolbox.py
File metadata and controls
27 lines (19 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'''Things only useful for testing.'''
def basic_starting_influence(map):
'''Basic strategy for starting influence.
US player adds 7 in Western Europe and 2 anywhere they have influence.
USSR adds 6 in Eastern Europe.
Until I implement proper setup choices for the AI, it's nice to have a
canonical setup for other testing.'''
map.countries['West Germany'].us_influence += 4
map.countries['Italy'].us_influence += 3
map.countries['Iran'].us_influence += 2
map.countries['East Germany'].ussr_influence += 1
map.countries['Poland'].ussr_influence += 4
map.countries['Yugoslavia'].ussr_influence += 1
def worst_case_influence(map):
'''How big and bad is this decision space going to get if we uh...
put one influence everywhere.'''
for _, country in map.countries.items():
country.us_influence = 1
country.ussr_influence = 1