Commit graph

89 commits

Author SHA1 Message Date
mwisnowski
a1d120f700 Added basic docker configuration for test 2025-08-21 09:03:48 -07:00
mwisnowski
0135eeeb3d Finished modularization with assistance from Github copilot 2025-08-21 08:40:31 -07:00
mwisnowski
d9b56d8e12 Add text file export along with csv, for easy import into moxfield or other deck building sites 2025-08-20 11:17:51 -07:00
mwisnowski
760c36d75d With assistance from Github CoPilot, massively overhauled the builder functionality, splitting it into smaller modules to provide a better step-by-step focus and drastically reduce the overall size of the core builder module 2025-08-20 10:46:23 -07:00
mwisnowski
ff1912f979 Enacted some cleanup of builder.py. moved Imports to the top and cut out duplicate code/moved it to builder_utils.py 2025-08-19 15:00:28 -07:00
mwisnowski
b7ee6ea57d Finished core deck builder. Still need to do cleanup, implement cards that are not singleton, and pricing 2025-08-19 14:15:23 -07:00
mwisnowski
8478bc2534 Implemented logic for adding creatures by themes, with weighted values. Added logic for keeping track of how many cards with what themes have been added as well 2025-08-19 10:18:53 -07:00
mwisnowski
411f042af8 Builder tool has been restrcutured up through adding lands, still a bit of cleanup to do, but will come back after other parts 2025-08-19 09:00:51 -07:00
mwisnowski
a8a181c4af Started remaking the builder module, Currently up through adding the standard/staple lands 2025-08-18 11:58:25 -07:00
mwisnowski
a69a4c8384 Started work on redoing the builder module, moved existing code to new dir and setup new builder.py file 2025-08-15 10:11:56 -07:00
mwisnowski
dd04dd0505 Revert "Massively overhauled the tagging process, refactored code to improve general effeciciency, implemented parallel processing to reduce total runtime"
This reverts commit 27ee13fb54.
2025-08-15 10:04:19 -07:00
mwisnowski
039b8fe89e Consolidated constants that are duplicated in various constant files. Implemented dataclass methodoligies for tagging counter-related cards tagging 2025-08-15 09:36:37 -07:00
mwisnowski
27ee13fb54 Massively overhauled the tagging process, refactored code to improve general effeciciency, implemented parallel processing to reduce total runtime 2025-08-14 11:21:09 -07:00
mwisnowski
02e2c09874 Restructured and removed redundant code for setup 2025-08-13 11:46:39 -07:00
mwisnowski
dbbc8bc66e Moved the builder, tagger, and setup modules into their own folders, along with constants to help provide better clarity and readability. Additionally added a missing call for the tag_for_artifcact_triggers() function 2025-01-28 10:19:44 -08:00
mwisnowski
3a5beebfe2 Removed references to an old card_info script I had originally thought to include.
Added the LICENSE file for open-source licensing
2025-01-21 09:26:36 -08:00
matt
76277f876c Adjusted logging across the files 2025-01-17 18:04:29 -08:00
matt
1c7436f33d Finished v2 of deck_builder, should be largely functional, but could use refinements. WIll continue to work on it, but largely satisfied with how it works. 2025-01-17 17:04:02 -08:00
mwisnowski
3fc3c584a4
Merge pull request #3 from mwisnowski/origin/refactor_deck_builder
Origin/refactor deck builder
2025-01-17 15:10:41 -08:00
mwisnowski
c628b054ea Finished refactoring and adding docstrings functions.
Added module-level docstrings to modules and cleaned up imports
2025-01-17 11:39:27 -08:00
mwisnowski
8936fa347f Finshed refactoring land addtiions, all that's left is adding cards by theme and other tags 2025-01-16 11:55:12 -08:00
mwisnowski
47c2cee00f Started refactoring up through the add_dual_lands function in deck_builder 2025-01-15 11:56:25 -08:00
mwisnowski
319f7848d3 Began work on overhauling the deck_builder 2025-01-14 12:07:49 -08:00
mwisnowski
e0dd09adee Began work on refactoring deck_builder
Fixed logging for the other files such that they actually log to the file instead of just creating it
2025-01-14 10:10:30 -08:00
mwisnowski
503068b20c Began work on refactoring deck_builder
Fixed logging for the other files such that they actually log to the file instead of just creating it
2025-01-14 10:08:44 -08:00
mwisnowski
b8d9958564 Fleshed out docstrings, added typings, cleaned up imports, and added a requirements.txt file
Additionally, renamed utility.ty to tag_utils.py to fit the naming pattern used with setup.py and setup.utils.py
2025-01-14 09:06:59 -08:00
mwisnowski
000d804ba7 Refactored setup.py again, confirmed that all filters are now working as expected. Work will resume on main branch now 2025-01-13 11:35:11 -08:00
mwisnowski
c4d773d663 Noticed that changes made in setup have drastically reduced cards after filtering. Redoing setup and it's associated files to fix this 2025-01-13 10:06:19 -08:00
mwisnowski
c1d6b5ce18 Tagger has been entirely restructured to use vector masks instead of iterrows, total tagging time has been drastically reduced 2025-01-08 17:26:02 -08:00
mwisnowski
6de2239a47 All themes refactored to use vector masks instead of iterrows 2025-01-08 16:16:41 -08:00
mwisnowski
17379340a8 Refined tagging up through topdeck theme 2025-01-08 16:04:42 -08:00
mwisnowski
d306e69b3a Adjusted more tagging functions misc themes up through big mana have been tagged 2025-01-08 12:06:33 -08:00
mwisnowski
aac2b26be8 Refactored multiple tagger functions, through to lifegain related functions so that they use vector masks in place of iterrows 2025-01-08 08:29:00 -08:00
mwisnowski
083ef937af Made numerous changes to the card draw functions, as well as other tagging functions up through to artifact tagging
These changes were done with teh assistance of traycer
2025-01-02 13:00:52 -08:00
mwisnowski
a4abea2c3c Started work refactoring the tagging functions by using Traycer 2024-12-31 12:04:10 -08:00
mwisnowski
e404515d91 Started changing print statements to logging statements in tagger.py
Refined the load dataframe section in tagger.py

Beginning work on changing the tagging functions to use vectorized inputs instead of iterrows
2024-12-31 10:48:11 -08:00
mwisnowski
5a92c04810 Refined chunks of logic using Traycer for analysis 2024-12-31 10:16:47 -08:00
mwisnowski
a5f6e4f09e Adjusted a number of print statements to be logging statements 2024-12-31 09:25:21 -08:00
mwisnowski
6c0aaf26a0 Refined weight logic, fixed error where weights with additional themes weren't a copy of the default weight and overwriting it instead 2024-12-31 09:18:02 -08:00
mwisnowski
c4a56b2197 Implemented logic for multiple-copy cards and counting pips 2024-12-30 12:06:46 -08:00
mwisnowski
0dfe53bb32 Added logic to tagger and deck_builder for "hidden themes" related to multiple-copy cards, such as Hare Apparent or Dragon's Approach 2024-12-30 11:43:36 -08:00
mwisnowski
c74d1ff03a test commit 2024-12-30 08:42:26 -08:00
mwisnowski
a251667fdb Added logic for CMC of deck,
REstructured logic of adding land cards to better match the adding by tag logic
Readjusted weight logic and adding cards by weight logic

Added logic so that if the deck isn't full, cards will be added in reverse tag order.
2024-12-29 20:16:57 -08:00
mwisnowski
d285703518 Adjusted logic with adding lands
Streamlined a number of processes, mostly related to adding fetches, duals, triomes, and working on the misc lands
2024-12-27 12:02:50 -08:00
mwisnowski
239d930fb7 Refinedl ogic for counting cards in library and what type 2024-12-26 17:20:58 -08:00
mwisnowski
77fe7fdf4b Adjusted logic for add_by_tags function 2024-12-26 11:59:30 -08:00
mwisnowski
1f8beeadef Removed need to create seperate land_cards file in setup
Adjusted tagger to keep the 'layout' and 'side' columns
2024-12-26 11:12:56 -08:00
mwisnowski
ae83d0f66f Adjusted logic in deck builder for making land_df 2024-12-26 10:52:09 -08:00
mwisnowski
b3de39bffb Fixed logic in setup for determining the 'face' of double sided cards 2024-12-26 10:02:12 -08:00
mwisnowski
f9ae7fa41e Adjusted some logic in setup to filter out any banned cards, as well as add the layout column to allow for easily seeing 'Normal', 'MDFC', or 'Transform cards.
Added logic for 'Kindred Support' tagging in tagger
2024-12-26 09:38:21 -08:00