CubePool made of Cards instead of strs

This commit is contained in:
henriquenakashima 2021-02-22 22:51:44 -05:00
parent a705e5d38c
commit 6b91cbb1b9
3 changed files with 53 additions and 31 deletions

View file

@ -23,9 +23,10 @@ def main():
main_pool = (pools['core'].wide_sample(CARDS_FROM_CORE) +
pools['occasional'].wide_sample(CARDS_FROM_OCCASIONAL))
main_pool_names = [card.name for card in main_pool]
with open(OUTPUT_FILENAME, 'w') as f:
f.write('\n'.join(main_pool))
f.write('\n'.join(main_pool_names))
if __name__ == '__main__':