As the label says, first one is the trie implementation and the second one is the decision tree implementation.
The integration of the trie will require a way of figuring out the path/pattern of a rule.
The decision tree integration will even require, as far as I can think of it, to retrieve the conditions in disjunctive normal form(DNF) so I can set a tree up properly. I offer to provide an implementation for inferring a DNF if really needed, but I didn’t think of that really much yet
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.