re: AoC Day 13: Mine Cart Madness VIEW POST

TOP OF THREAD FULL DISCUSSION
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!

github.com/neilgall/adventofcode20...

 

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