Qbasicnews.com

Full Version: Random Dungeon Generator in 4 lines anyone?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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!
4 liner without quotes? I guess without quotes, am I right? If you allow quotes I can stuff 200 lines in one Tongue
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
Then it's a 1024character limit (Not counting CRLF)


Nath, quote = "
Colon (sp?) = : :lol:
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.
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
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...)
Lol, i thought it was th other way around Tongue


Silly QB... freeBASIC all the way Big Grin
Define dungeon...
Quote:With dungeon i mean those room+passage+room+... that most roguelikes (Nethack, Angband) create.
Definiera: Läsa Tongue
Hehe :lol:
Pages: 1 2