u/ADatabaseSpiritual

▲ 112 r/roguelikedev+1 crossposts

Dipping My Toes Into Roguelike Dev: Drunk Walk Cave Gen

For my first roguelike project I'm working on proc-gen. As a data scientist, random walks are attractive to me. In time series analysis we use random walks with drift to characterize some phenomena like stock market fluctuations. I added "momentum" as a parameter to help give the walker drift, which creates corridors.

I'm using Golang because...

  1. I've written Python for money for like 8 years now and it's boring me
  2. Golang ships a binary so in theory my outputs can run anywhere.
  3. It's pretty dang quick while still handling garbage collection for you.
  4. For terminal based tools the ecosystem is incredibly mature. Many of the best modern terminal tools are written in go.

I put the code in GitHub if you would like to play with it yourself!

Might do a YouTube walk through if anyone is interested. Let me know.

https://github.com/PigsEyedea/drunkardwalk

u/ADatabaseSpiritual — 10 days ago