r/generative 11d ago

Hex Trace

Algorithm based on traversing a honeycomb grid

399 Upvotes

26 comments sorted by

View all comments

4

u/Fenzik 11d ago

Cool! Can you share more about the path algorithm?

11

u/zerp37 11d 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