re: AoC Day 13: Mine Cart Madness VIEW POST

re: A solution in python in which I have represented the tracks as an array of transformation functions on carts. from collections import namedtuple...

Really interesting how yours is very much the same concept as mine but Pythonic rather than Kotlin-ic!


One idea I want to explore (I don't know when) is to substitute most of the functions with dictionaries and func calls by lookups. I think this way I can represent the movements in a way similar to a rule system.

code of conduct - report abuse