Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Dungeon Generator in 4 lines anyone?
#1
Hi!

Just as the topic says, a nice little 4liner that creates some kind of random dungeon.
With dungeon i mean those room+passage+room+... that most roguelikes (Nethack, Angband) create.
You dont need to populate it with monsters and treasures, just create it and
display it on a 80x25 text screen.

Lets see if i can come around with one too.

So Long, The Werelion!
color=red]Look at you, Hacker. A pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?" - Shodan, AI at Citadel Station orbiting Earth[/color]
Reply
#2
4 liner without quotes? I guess without quotes, am I right? If you allow quotes I can stuff 200 lines in one Tongue
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#3
Quote:4 liner without quotes? I guess without quotes, am I right? If you allow quotes I can stuff 200 lines in one Tongue
With these -> :
And with the 255 char limit
color=red]Look at you, Hacker. A pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?" - Shodan, AI at Citadel Station orbiting Earth[/color]
Reply
#4
Then it's a 1024character limit (Not counting CRLF)


Nath, quote = "
Colon (sp?) = : :lol:
Reply
#5
Gimme a break, I wrote that so early :lol:

If it is using colons... well, 1024 * 4 = 4 Kb of code. That's pretty big.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#6
And if you don't use the QBIDE you can have over 1024byte lines...


Anyways, I have no idea how one would do this Big Grin
Reply
#7
Quote:And if you don't use the QBIDE you can have over 1024byte lines...


Anyways, I have no idea how one would do this Big Grin

Well, BC.EXE just takes 255 chars per line. The QB IDE can interpret programs with 1024 chars per line. When compiling, it adds funny "_"s.

(I think, I haven't coded in QB since...)
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#8
Lol, i thought it was th other way around Tongue


Silly QB... freeBASIC all the way Big Grin
Reply
#9
Define dungeon...
/post]
Reply
#10
Quote:With dungeon i mean those room+passage+room+... that most roguelikes (Nethack, Angband) create.
Definiera: Läsa Tongue
Hehe :lol:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)