Oct-20-2016, 04:45 PM
Do you know what the rules are? Are they callable objects? Strings representing things you do? Could it be as simple as:
def step(rules, state): for rule in rules: state = rule(state) return state