Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / The DB Classic Programming Challenge Thread

Author
Message
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 12th Aug 2008 12:58
Yeah, It came a little sooner than expected...

Suicide is away of telling God, You can’t fire me I quit !!!!!
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 15th Aug 2008 20:03
uhm... No entries? What`s wrong? There`s only one day left!

Suicide is away of telling God, You can’t fire me I quit !!!!!
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Aug 2008 21:32
Oh I've been working on one, but the math is a little tough.


TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 15th Aug 2008 22:32
Has anyone else been working on this challenge?

Suicide is away of telling God, You can’t fire me I quit !!!!!
NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 16th Aug 2008 00:47
I would enter but I'm in a hotel so I can't


On the other hand, you have different fingers.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 17th Aug 2008 00:33
Only about 90 minutes left!

Suicide is away of telling God, You can’t fire me I quit !!!!!
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 17th Aug 2008 04:04
Meh. I suppose you should set a new challenge.

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 17th Aug 2008 08:56
Here's my code, draws an opal gem.





hey it may be crappy but i dont see any other entries!


Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 17th Aug 2008 09:08 Edited at: 17th Aug 2008 20:10
Yay! Phaelax wins the contest with a crappy oval drawing program. Features include bad retro graphics and next-gen "mouse-following" technology! Incredible!


I'm Sinani201, and I approve of this message.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 17th Aug 2008 09:13
Latch? Me thinks you need your eyes checked.


TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 17th Aug 2008 11:17
You mean Sinani...

The Challenge is over!

I must say, I am a little disappointed! I expected at least 3 entries... Are you all on holidays?

Anyway, The Winner is
!! Congratulations!

Suicide is away of telling God, You can’t fire me I quit !!!!!
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 17th Aug 2008 11:52
Quote: "You mean Sinani..."

Nahh, he meant "Latch?" since Sinani called HIM latch. Anyway, wasn't on vacation, just a little busy with some other stuff right now.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 17th Aug 2008 17:10 Edited at: 17th Aug 2008 17:11
I hate to break the fun, and ruin Phaelax's Incredible victory, but...


Quote: "8. If nobody enters within the time limit, the challenge setter must set a new challenge."


TheComet never said he extended it, and Phaelax entered over 24 hours after the challenge was ended.

Thus, we shall await a new challenge from TheComet.

Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 17th Aug 2008 20:12
Sorry about that, Phaelax! The post was edited. Now edit the post that says the mistake so that I don't get any more embarrased...


I'm Sinani201, and I approve of this message.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 17th Aug 2008 20:34
But Phaelax entered before I set the end. Doesn`t his entry count?

Suicide is away of telling God, You can’t fire me I quit !!!!!
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 17th Aug 2008 21:01
He entered after the deadline, but before you declared the deadline.
If you declared the deadline 24 hours after you were supposed to, then you either have to set a new challenge, or the runnerup from the last challenge will judge. It is the rules!


I'm Sinani201, and I approve of this message.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 17th Aug 2008 21:20 Edited at: 17th Aug 2008 21:21
OK, so I will let the runner up from the last challenge judge. I`m more for programming than judging!

The runner up was Latch

Suicide is away of telling God, You can’t fire me I quit !!!!!
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 18th Aug 2008 00:08
O....k.... so we are going to get the runner up from the last challenge to judge the winner of this challenge in which there was only 1 contestant? Am I the only one who sees a problem with this?

Here is an idea, since it seems like kinda a fuzzy boundary. We need a new challenge obviously, since this one is done.

TheComet, your choice. You can set a new one, or we can declare phaelex the winner and get on with the next challenge, no sense tying up the whole thread over this.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 18th Aug 2008 00:26 Edited at: 18th Aug 2008 00:26
I agree with BN2. Let's not slow up the challenges because nobody entered.

sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 18th Aug 2008 01:21
*sigh*

CYMRU AM BYTH!
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 18th Aug 2008 03:12
If it's too hard to decide, let's use the current DBPro challenge:

Quote: "Ok, we'll give procedural generation a go.

Challenge: Procedural Dungeon Bash (A.K.A Rogue, wiki it!)

Must have at least 100 levels (This is the beauty of procedural generation, no need to build each level by hand.)
Each level must have an exit to the next level
There must be a path from the Level Entrance, to the Level Exit.

Bonus points for
Room Variety
Treasure
Enemies (Static Enemies are ok)

I'll be looking more at technique than GFX, can be 2D or 3D

Hints:

Generate a level by (randomly) assigning pre-defined 'rooms'

You have 2 weeks, I shall judge on Monday 25th August sometime after 8pm BST (British Summer Time)"


At the end, all the entrants can vote on their favorite entry (but not their own). The most votes win and the second most is the runner up. I'm not sure what to do about a tie though.

Enjoy your day.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 18th Aug 2008 05:11
Ok, just googled procedural generation, but still not sure exactly what it is, could you explain what it is/how it works?

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 18th Aug 2008 05:52
Yes I don't quite get it either.

BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 18th Aug 2008 05:59
Ok, it almost seems like ai mixed with random generation. So rather than just randomly generating every tile, it takes some input and bases the choice off of what is around the tile.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 18th Aug 2008 06:01
It basically means producing a result by giving a program a series of limits or parameters. A super simple example of a procedural generation is the line command. You supply the start and end points of the line, and the procedure calculates all of the points in between and draws them.

For a dungeon, it's more complex. An example might be, you have a maximum of 10 cooridors and 10 rooms that can be used at any given time. Maybe half of the cooridors run east west and the other half run north south with and without corners. Maybe half of the rooms have 1 door and the other half have more than one door up to 4. An opening or door can lead to a room or cooridor until the max of that type is reached. You create a procedure/s or series of functions that puts the pieces together based on some limits the user supplies. You always make sure though that there is a start and an end and everything is accessible. You can also add random elements like monsters or treasure, or traps. Maybe have numbered doors and numbered keys that go together but the keys are randomly placed throughout the rooms. The inputs the user supplies might be maximum number of rooms or the max dimension sizes, number of treasures, number of monsters, etc. Once all the parameters are supplied, you use those limits and any hardcoded limits and randomization to piece the puzzle together.

Enjoy your day.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 18th Aug 2008 17:41 Edited at: 18th Aug 2008 17:41
I wan`t to enter this challenge, I have a really good Idea! So I will let latch judge. Is that OK with you?

Suicide is away of telling God, You can’t fire me I quit !!!!!
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 18th Aug 2008 20:00
I can't commit to judging this one. What about letting everyone who enters vote on their favorite but not their own?

Enjoy your day.
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2008 20:02
sounds good.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 18th Aug 2008 22:10 Edited at: 18th Aug 2008 22:13
So, everyone that enters is the judge? That sounds good!

So let`s set the Deadline: 2 Weeks from now would be the 01,09,2008 Midnight GMT.

So...

Challenge: Procedural Dungeon Bash (A.K.A Rogue, wiki it!)

Must have at least 100 levels (This is the beauty of procedural generation, no need to build each level by hand.)
Each level must have an exit to the next level
There must be a path from the Level Entrance, to the Level Exit.

Bonus points for
Room Variety
Treasure
Enemies (Static Enemies are ok)

I'll be looking more at technique than GFX, can be 2D or 3D

Hints:

Generate a level by (randomly) assigning pre-defined 'rooms'

Deadline:
01,09,2008 Midnight GMT.

Is that OK?

Suicide is away of telling God, You can’t fire me I quit !!!!!
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 18th Aug 2008 22:39
Sounds good to me.


I'm Sinani201, and I approve of this message.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Aug 2008 23:10
I'm the only one who entered the gem challenge and I STILL lost? Oh man this sucks. But I like this challenge so its ok, even though there's been previous "random maze" challenges in both classic and Pro.


Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 19th Aug 2008 01:07
This'll be intense.

BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 19th Aug 2008 05:30
Ok, now by 100 levels, do you mean 100 single screen rooms with chambers within or do you mean multi area levels then at the end you come to a flight of stairs?

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Aug 2008 06:19
I think he means your code is capable of producing 100 different randomized levels, where each level is made up of several rooms and corridors.

Been doing some research on this, Diablo sort of being my basis, and a random dungeon seems more than just a random maze. Typically, since a dungeon usually has at least one room that stays the same, it's not completely random, but built from a set of pre-made rooms that can be randomly placed and connected in different ways.


NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 19th Aug 2008 13:59
Here's something I've been working on:


Will this qualify for the challenge?


On the other hand, you have different fingers.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 19th Aug 2008 17:30
That's awesome! I think that would work for the challenge. Not that I'm the challenge setter. Good luck mate.

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 19th Aug 2008 17:40
That is very cool, Nano! I have a good feeling with your dungeon!

Suicide is away of telling God, You can’t fire me I quit !!!!!
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 19th Aug 2008 19:49
Was that generated by code? It looks awesome! Can you play it? Or is it a map generater?

LLANFAIRPWLLGWYNGYLLGOGERYCHWYRNDROBWLLLLANTYSILIOGOGOGOCH
CYMRU AM BYTH!
NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 19th Aug 2008 19:57
Thanks!

@sinister
Yes, it was generated by code and I'm working on making it into a playable 3D maze type thing.


On the other hand, you have different fingers.
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 19th Aug 2008 23:23
It reminds me of Diablo actually...

LLANFAIRPWLLGWYNGYLLGOGERYCHWYRNDROBWLLLLANTYSILIOGOGOGOCH
CYMRU AM BYTH!
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th Aug 2008 00:35
I'm not seeing the Diablo part of it. I think I'd die if I got stuck in a Diablo dungeon that large. It's good for a maze, but I think it looks too complex for a game dungeon.


NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 20th Aug 2008 00:59
Yes, I know, I'm planning on making it smaller with bigger rooms.


On the other hand, you have different fingers.
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 20th Aug 2008 01:05
Well it reminds me of diablo! Complex though it may be! It just reminds me of it somehow...

LLANFAIRPWLLGWYNGYLLGOGERYCHWYRNDROBWLLLLANTYSILIOGOGOGOCH
CYMRU AM BYTH!
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 20th Aug 2008 01:11 Edited at: 20th Aug 2008 01:43
It's a bunch of boxes with holes in it. Lol Sinister.


Nice job Nano. Looking good!
[EDIT]

Okay! I finished my first entry!

It has the following

-Graphics
-100 levels
-Start and Finish
-Winning screen
-Auto Map Generation
-98% chance it's beatable

========
|======|
========



After you check that out,



SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 21st Aug 2008 15:13 Edited at: 21st Aug 2008 15:15
Hey everyone......im a late dude for this challange....but may i ask what that challenge is......there is way to many posts to go back and find out so i will start asking here. Oh and when is the dead line?

edit:
Quote: " never mind i see both of those answers now on the top page..... And the deadline is soon. Maby i will join the next contest?"
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 21st Aug 2008 16:58 Edited at: 21st Aug 2008 16:59
You still have a good amount of time. Feel free to join any contests you want!

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Aug 2008 20:14 Edited at: 21st Aug 2008 22:14
arghhhh! Link after link after link I find referring to random dungeons keeps taking me to pages on aarg.net, which always gives a 404.

Here's some other sources I've found that might help people.

http://www.ucs.louisiana.edu/~mxp4758/pcg.htm
http://www.astrolog.org/labyrnth/algrithm.htm


Here's my WIP, don't mind the red lines.


Far from perfect. Heck, even the hallways don't always complete for some reason.


Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 21st Aug 2008 22:38
Still pretty good Phaelax. Good luck.

NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 22nd Aug 2008 15:55
@Phaelax
Looking great!

@All (especially Comet)
I just thought of something, if we all post our votes here, won't our decision be effected by what everybody else has voted? Mabye everyone should email their votes to someone or something.


On the other hand, you have different fingers.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 22nd Aug 2008 17:25
I agree Nano.

Login to post a reply

Server time is: 2026-06-07 21:48:53
Your offset time is: 2026-06-07 21:48:53