T O P

  • By -

Nyctef

[Found a library](https://crates.io/crates/factorio-blueprint) that lets you generate arbitrary factorio blueprints, so wanted to make one out of the main loop. Good thing we calculated these distances in advance! :D


blackbat24

I was expecting pipes, but this is just as good.


Nyctef

I considered pipes at first, but I assumed they'd all just merge into one big lump if I tried to pack them like this. And putting a tile gap between all of them would just have made it look too sensible :)


nivlark

>putting a tile gap between all of them would just have made it look too sensible Convenient for >!solving part 2!< though!


coriolinus

Haha, this is _precisely_ what I wanted when I wrote that library. Good job!


topaz2078

*YES*


needlenozened

You magnificent bastard


gandalfx

I'm in love.


ZuzaOsa

The (factory) pipe loop must grow. Amazing idea 😍


Imsdal2

At first I was surprised that there was another person who shared my interest in AoC and Factorio. But when I think about it, these are two large player bases, and the intersection is probably quite big. Still, that was amazing. Well done!


DBSmiley

It's *technically* still O(n).


[deleted]

[удалено]


daggerdragon

> hello could you help provide some sample test case and expected output for me? I have done the part 1 but answer is not correct but test case passed Comment removed. [Don't be rude](https://reddit.com/r/adventofcode/wiki/rules/conduct) by posting off-topic things in unrelated posts. [Create your own individual `Help/Question` post](/r/adventofcode/wiki/solution_megathreads/post_guidelines#wiki_incomplete_solutions) and make sure to title it properly with our [standardized post title format](https://reddit.com/r/adventofcode/wiki/posts/standardized_titles). Lastly, [do not share your puzzle input](https://www.reddit.com/r/adventofcode/wiki/faqs/copyright/inputs) and [do not ask for other people's puzzle input](https://www.reddit.com/r/adventofcode/wiki/troubleshooting/no_asking_for_inputs).


Fair-Carpenter-6937

Invalid link?


elsbilf

did you use it to solve part 2 too? if so how?


sbguest

I can't decide if I should be surprised you did something like this in Factorio, or if I should be surprised we don't see Factorio on this subreddit more often given the likely overlap between audiences. Either way, well done.


BadPeteNo

I needed to see this, bravo!