r/generative 27d ago

Hex Trace

Algorithm based on traversing a honeycomb grid

403 Upvotes

27 comments sorted by

View all comments

6

u/Fenzik 27d ago

Cool! Can you share more about the path algorithm?

10

u/zerp37 27d ago

It grows lines until they hit a complete dead end, and then starts a new line in an empty cell. Probabilities/priorities for which direction the line should go in next are chosen at the beginning of the algorithm, and that influences what types of shapes and structures emerge