Author Topic: Gnomish mines  (Read 13894 times)

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Gnomish mines
« on: July 01, 2009, 07:14:32 AM »
Looking at the source code of Nethack's gnomish mines generator gives me a headache. Any ideas how the routine actually works? I guess you could generate cavern-like mazes in many ways, but I'm looking for a ready solution so I don't have to think.

ido

  • Rogueliker
  • ***
  • Posts: 618
  • Karma: +0/-0
    • View Profile
    • Tame Tick
Re: Gnomish mines
« Reply #1 on: July 01, 2009, 09:01:50 AM »
A popular way is to use cellular automata.

Don't know if it is similar to what nethack is doing, though.

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: Gnomish mines
« Reply #2 on: July 01, 2009, 10:17:15 AM »
Don't know if it is similar to what nethack is doing, though.

Nethack's routine looks more cleverer. Maybe I should plan the routine by thinking "what would gnomes do?" I already have a routine which can create dungeon features and mineral vein is probably something that gnomish mines could start with, then digging around and in them for mine activity. Add couple of store rooms and corridors between everything.