24 lines
681 B
Python
24 lines
681 B
Python
import itertools
|
|
|
|
from flashcards.maps import (create_maps,
|
|
read_data_to_dict,
|
|
read_name_data_to_dict)
|
|
from flashcards.fighting import generate_all_fight_results
|
|
|
|
|
|
|
|
# --- General section to read in names and data
|
|
|
|
# specify the namelist to be used to create the deck
|
|
# give the relative path of the file from config.namelists_dir
|
|
namelist = 'units-buildings-trimmed.txt'
|
|
|
|
# key into json file specifying which data you want
|
|
name_json_keys = 'units_buildings'
|
|
data_json_keys = ('data', 'Unit')
|
|
|
|
_, nums = create_maps(namelist, name_json_keys)
|
|
data = read_data_to_dict(data_json_keys)
|
|
|
|
generate_all_fight_results(data, nums)
|