Remove fighting files from module

Moved them to their own module. Must now import that module to use any
of the fighting functions.
This commit is contained in:
Nate Bowman
2026-10-27 19:51:53 -04:00
parent 361a63b478
commit 80bb9790bf
6 changed files with 0 additions and 665 deletions

View File

@@ -1,22 +0,0 @@
from flashcards.maps import (create_maps,
read_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-test.txt'
#namelist = 'units-non-unique.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)
results = generate_all_fight_results(data, nums)
print(results)