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 Professional Discussion / DBP Coding Challenges Respawn

Author
Message
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 17th Dec 2012 21:14 Edited at: 19th Dec 2012 21:51
I've noticed that the coding challenges got locked before I even started using DBP, but this was something I always enjoyed partaking in on the DBC part of the forums. I never really enjoyed the challenges for the opportunity of winning, but more for the fact of breaks from large programming projects and to see the diversity in people's programming styles. I've decided I'll keep a thread alive posting a programming challenge once a month to be completed by the third week in each month. I'll partake in every challenge and encourage everyone else to partake if they feel up to it. I'll judge a winner if anybody excluding myself decide to take part.

JUDGING CRITERIA AND SCORING

Creativity Score Range: 0 - 15
Is it a simple entry just doing what the guidelines state or does it follow the rules and extend on them
Is it a clever twist or a creative way to demonstrate the challenge while still abiding by the rules
This will be judged on how creatively the challenge is completed by the entry. This will encourage people to think outside the box and to not just try to finish the challenge, but to think of how many ways the challenge can be completed.

Cleanliness of Code Score Range: 0 - 15
Proper Indenting
Clean and Clear Commenting
Understandable Function, Variable, and Array names
Good Work Flow
This will obviously be pretty flexible considering people have such different programming styles. The main judgement for this area is basically how well others would understand your code. This will encourage people to keep their code clean when programming large projects.

Flexibility Score Range: 0 - 25
Can it be manipulated?
Can it be used in more then one case?
Are the results always the same?
This will be judged on if the results can be manipulated and changed by the user and if it is situational. This will encourage people to create functions rather then writing hard code and to make their code versatile.

Complexity Score Range: 0 - 25
Does it offer a simple solution or does it offer multiple
Does it generate one answer or multiple with levels of detail
Was thought put into it or was it just thrown together
This section will be judged depending on if the code was just an attempt at a quick entry or if plenty of thought was applied prior to coding it. This will help encourage people to concentrate on the quality of the product and not just trying to attain results.

Manageability Score Range: 0 - 10
Will the code be easy to manipulate or add to later on down the road.
Is there room left for future corrections
This will mainly be judged on the structure of the code not the cleanliness. This will encourage people to be smart about their code so when they go back to edit it in the future, they don't have trouble adding new features.

Consistency Score Range: 0-10
Does the entry stay on topic
Does it follow the rules stated with the challenge
This will be judged simply by the challenge set forth and the product the programmer presents. This will encourage people to stay on task with their projects and to not lose focus.

Total Points Possible: 100

RULES FOR ALL ENTRIES
No outside media is to be used
Each programmer can submit as many entries as they like
Entries can be 2D or 3D
All entries must be submitted by established deadline
Deadline timezones is always the same as Forum Server Time
Memblocks may be used.
Only free plugins may be used to ensure nobody gets an unfair advantage(this rule is only temporary until a final consensus is made by the community)
Have fun
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 17th Dec 2012 21:15 Edited at: 4th Jan 2013 07:00
Procedural Generated Grass Challenge


Somehow generate grass whether it is a blade of grass, a grass texture or a field of grass.


Start Date: 17th Dec 2012

End Date and Time: 1st of Jan 2013 23:59 Forum Server Time


Possible Participants
pictionaryjr
Arbrakan
Green Gandalf
chafari
Phaelax
Sergey K
RonsWare


[center]Entries

Phaelax -


Chafari -


The Comet -


The Comet -


Arbrakan -


Kezzla -


Winner

Arbrakan
15
Years of Service
User Offline
Joined: 10th Oct 2010
Location: Geneva
Posted: 17th Dec 2012 21:48
Nice Idea !, I am already in the code

Have fun !

wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 18th Dec 2012 01:44
No outside media? This challenge is clearly prejudiced against artists!

http://mattsmith.carbonmade.com/
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 18th Dec 2012 15:50 Edited at: 18th Dec 2012 19:53
Sorry haha, but this is the CODING challenges respawn after all. Besides that, some people don't quite have the best artistic abilities so it would give an unfair advantage to those that do and it makes the challenges more challenging. You can be an artist with code. You can use fractals to make art and actually a lot of things like trees and what not. If anything making custom media with code will give you an upper hand in this for the creativity section.

FRACTAL ART:


Current Challenge is the 2nd post on the first page.
Arbrakan
15
Years of Service
User Offline
Joined: 10th Oct 2010
Location: Geneva
Posted: 18th Dec 2012 17:18
Or there is programming language made for artists : http://processing.org/



And with Dark BASIC Pro you can come to very nice effects only with code.

pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 18th Dec 2012 18:17 Edited at: 18th Dec 2012 19:53
That's interesting arbrakan. I had never heard of that before

Current Challenge is the 2nd post on the first page.
RonsWare
15
Years of Service
User Offline
Joined: 5th Sep 2010
Location: Netherlands
Posted: 18th Dec 2012 18:22
I love this thread.
Great to reopen the coding Challenges.
I have no time, i hope Chafari will make something.

Cheers Ron.

Programming is learning
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Dec 2012 19:10
Ditto.

Might like to try the grass one myself. I need a break from awkward technical shader questions ...

Closing date noted - but you'll probably need to define the time according to some fixed reference such as the server time which anyone can check. I vaguely recall the deadline timing issue caused a few minor upsets in the past.
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 18th Dec 2012 19:56
Alright I took that into notice Gandalf and have set it on the challenge and will be adding it to the Rules For All Entries section on the first post.

Current Challenge is the 2nd post on the first page.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 18th Dec 2012 20:36
Hi there.
I like the idea...I hope to participate

cheers.

I'm not a grumpy grandpa
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Dec 2012 20:44
Quote: "Alright I took that into notice Gandalf and have set it on the challenge and will be adding it to the Rules For All Entries section on the first post."


That should do it. Thanks.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Dec 2012 21:38
Count me in for the grass challenge.

"You're not going crazy. You're going sane in a crazy world!" ~Tick
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 18th Dec 2012 21:59 Edited at: 18th Dec 2012 22:00
I'm going to try to include some fractal art in mine just for wattywatts

Current Challenge is the 2nd post on the first page.
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 18th Dec 2012 22:17
this gonna be my 1st participation in those kind of chalanges, so count me in. gonna do my best

Advanced Updater for your games!
RonsWare
15
Years of Service
User Offline
Joined: 5th Sep 2010
Location: Netherlands
Posted: 19th Dec 2012 00:43
maybe i am in to.
I love a challenge.
Try to make some time free for this.

And that at my age.

Cheers Ron.

Programming is learning
sayerbloke
13
Years of Service
User Offline
Joined: 1st Dec 2012
Location:
Posted: 19th Dec 2012 07:12
I don't know if I'll have time to take part in this first challenge, but I'm glad to see a topic like this come back and look forward to seeing what people come up with .
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Dec 2012 08:34 Edited at: 19th Dec 2012 10:22
What about plugins?

Here's my first quick entry. I think it's grass, if you assume early 90s video game graphics.



"You're not going crazy. You're going sane in a crazy world!" ~Tick
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 19th Dec 2012 13:36
Quote: "I think it's grass,"


So do I. Looks like this challenge is up and running.
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 19th Dec 2012 15:37 Edited at: 19th Dec 2012 15:44
Looks like grass to me too. It's also why I wanted to get these challenges up and running again.It gives a different perspectives and a break and we also sometimes end up getting some pretty nice code from people partaking in these.
@Phaelax I would have never though to do it the way you did Phaelax, but I end up liking it. It makes me feel like I'm on a Safari when I watch it. Helps me think outside the box too. Congrats on being the first entry , now we all know the standard we have to beat

Edit:
And to reply to you Phaelax, I do think some plugins should be allowed as long as they are free. As I said I think it should be more based on the code since these are the CODING challenges and don't want to give anyone an unfair advantage you know?
Arbrakan
15
Years of Service
User Offline
Joined: 10th Oct 2010
Location: Geneva
Posted: 19th Dec 2012 16:25
Dark Imposters
But not free ^^

pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 19th Dec 2012 17:08
I mean I guess it's up to everyone to decide. I don't own dark imposters, but then again I don't imagine any of these challenges getting so intensive that it would be required, so it wouldn't bother me. I've actually thought of ways to apply my own implementations.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 19th Dec 2012 21:04
I think it should only be free plug-ins that are allowed for the reason you gave before:

Quote: "And to reply to you Phaelax, I do think some plugins should be allowed as long as they are free. As I said I think it should be more based on the code since these are the CODING challenges and don't want to give anyone an unfair advantage you know?"
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 20th Dec 2012 02:44 Edited at: 21st Dec 2012 01:00
Hi there...this is my entry...I'm trying to make an update.


Edited.


Cheers.

I'm not a grumpy grandpa
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 20th Dec 2012 06:05
I tried compiling your code Chafari, but all I got was this

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 20th Dec 2012 13:11
Perhaps could be because I'm still using old version 074...I'll test it again when I get home..

I'm not a grumpy grandpa
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 20th Dec 2012 15:30
I was going to ask what one you had haha. I was going to go through and see if I could get it working, but then figured it be best to not to mess with your entry
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th Dec 2012 17:36
@chafari

I think this line is your problem:



On my machine those are all set to ridiculously large numbers. When I replace that expression by something sensible I get a grass effect. I'm not sure but my guess is that you are not using 32 bit colours on your set up, i.e. the alpha component is set to 0. That sort of thing is GFX card dependent I believe.

You probably intended to use only the RGB component of the pixel colours. If so I suggest you do that explicitly using rgbr(), etc.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 20th Dec 2012 19:25
Quote: "I think this line is your problem:"

You are right GG...I had notice that when I tested in my desktop...I'm getting old ...the version is not the problem.

Here is the code again:



Cheers.

I'm not a grumpy grandpa
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th Dec 2012 19:31
Nicely done.

"You're not going crazy. You're going sane in a crazy world!" ~Tick
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 20th Dec 2012 19:54
Thanks...let see if people participate...we've got two weeks more.

Cheers.

I'm not a grumpy grandpa
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 21st Dec 2012 11:53
Quote: "Nicely done."


Agreed.

This challenge has got off to a great start with two excellent, and very different, submissions already. Let's see some more.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 21st Dec 2012 14:13


TheComet

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 21st Dec 2012 14:27
I think the ponies have been munching your grass ...
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 21st Dec 2012 18:11 Edited at: 21st Dec 2012 18:12
Great Job Chafari. Much better then the sphere that just had a spinning light . and Comet you might have just taken the cake

Edit:
And just so everyone knows. My entry should be in by the end of the night.
RonsWare
15
Years of Service
User Offline
Joined: 5th Sep 2010
Location: Netherlands
Posted: 21st Dec 2012 18:49
@Phaelax nice.
@Chafari realy impressive, nice code.
@TheComet

End of the world ??
Where ?

I am still are working on a good concept.

Cheers Ron.

Programming is learning
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 22nd Dec 2012 00:32
Thanks you all guys for your comments.

Quote: "I think the ponies have been munching your grass "


Come on !! TheComet...you should have more grass out there...

Cheers.

I'm not a grumpy grandpa
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Dec 2012 02:04 Edited at: 22nd Dec 2012 02:05
OK, here's my real entry.

-random bursts of amplitude of swaying (wait a bit)
-random direction of swaying
-use mouse to look around



TheComet

RonsWare
15
Years of Service
User Offline
Joined: 5th Sep 2010
Location: Netherlands
Posted: 22nd Dec 2012 02:35
@TheComet Great, i love the grass animation.

Cheers Ron.

Programming is learning
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Dec 2012 07:07
very dark grass

"You're not going crazy. You're going sane in a crazy world!" ~Tick
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Dec 2012 11:32
Looks like The Comet has sorted out the pony problem.

Nice effect.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 22nd Dec 2012 15:36
Quote: "Looks like The Comet has sorted out the pony problem"


Yeah ...now we have enough grass for a whole stable of horses...nice one TheComet !!


Cheers.

I'm not a grumpy grandpa
RonsWare
15
Years of Service
User Offline
Joined: 5th Sep 2010
Location: Netherlands
Posted: 30th Dec 2012 12:28
No one else ?
I am not going to make it in time.
I hope some one else will.

Cheers Ron.

Programming is learning
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Dec 2012 19:37
I had some 3D ideas, but I won't have time to do it.

"You're not going crazy. You're going sane in a crazy world!" ~Tick
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 30th Dec 2012 21:15 Edited at: 30th Dec 2012 21:21
@Phaelax
@RonsWare
Whatever you want....we have to try to bring up again these challenge thread....all we know that we are in Christmas, and most of us hardly have time to code, but next year comes.... new codes will come, but we need not let this rhread die again...mmmm now it seams I'm Santa.....


Cheers.

I'm not a grumpy grandpa
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 31st Dec 2012 05:13
I'm not letting this thread die. I'm about done with mine as we speak, and as Chafari has said got caught up with christmas. I've been from the florida keys all the way to the appalachian mountains for snowboarding so i've been kinda, but i've about got a 3d demonstration ready. although I don't think I'll have time to comment so even though it'll look pretty, I won't win .
RonsWare
15
Years of Service
User Offline
Joined: 5th Sep 2010
Location: Netherlands
Posted: 31st Dec 2012 07:40
@pictionaryjr
I can't wait to see it

@Chafari
i love santa

Cheers Ron.

Programming is learning
Kezzla
17
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 31st Dec 2012 10:12 Edited at: 1st Jan 2013 08:09
wow, I just happened to find this thread right on the deadline!

luckily by a helpful coincidence i have been working on this theme anyway, so here is my entry.

the routine works quite nicely with smaller model textures, i just rushed the media creation and got stuck on shrinking my textures. nevermind, its about grass and that's what it has.

edited 1/1/13 see edit time -shrank textures and fixed some other not quite right bits.


my main routine has grass distance fade too, however uses community functions to achieve this, Im outta time so i left out the fade part.

kezzla

Arbrakan
15
Years of Service
User Offline
Joined: 10th Oct 2010
Location: Geneva
Posted: 31st Dec 2012 14:16
Ok my grass have grow..



It was a funny challenges, with beautiful grass entry and nice DBPro Skills, I can't wait the next one.

pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 2nd Jan 2013 06:17 Edited at: 2nd Jan 2013 07:03
It stinks that I wasn't able to finish on time but the deadline just passed. Mine was extremely similar to Kezzla's anyways. I'll do the judging Thursday Night and post the winner then.

EDIT:
Just found out I still have time. Now its a race

Double Edit:

Login to post a reply

Server time is: 2026-07-07 02:39:15
Your offset time is: 2026-07-07 02:39:15