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
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Aug 2008 19:26
nobody said I had to make a clock. So, what were bonus points given for?


Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 3rd Aug 2008 19:30 Edited at: 3rd Aug 2008 19:31
Quote: "-Edit text files
-copy, move, replace, and delete files
"


And no, it didn't say anything about a clock.

My internet is not fast enough to double post.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 3rd Aug 2008 21:05
Quote: "-The system time has to be printed on the screen"


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: 3rd Aug 2008 21:15
Thanks TheComet, and thanks Irojo

That was a very good challenge and I learned alot from it.

And now, here's the next challenge:

The Doodle Challenge


The Challenge is to create a program that will draw a randomly generated doodle/scribble onto the screen. Like you would in MS Paint if you're bored (or is that just me ). Here's an example of what it might look like (created in MS Paint):


It doesn't have to look anything like that, it could be a completely different style. You could even include the odd letter or mabye a simple symbol or picture. But remeber, the more natural (i.e. looks like it was created by a human) it is, the better.

Deadline: 1 week- Midnight GMT, Sunday 10/08/08


On the other hand, you have different fingers.
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 3rd Aug 2008 21:17
OOOooHH!!! This should be fun.


TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 3rd Aug 2008 22:30
I have a question...

Can I generate random numbers by getting the input of myself drawing like this and storing the numbers in data statements, and the calling the numbers back in a random sequence?

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: 3rd Aug 2008 23:08 Edited at: 3rd Aug 2008 23:41
This is a great challenge Nano! I think I'll try my hand at this. Creative challenge!

Do data commands not work in if...endifs?




I guess I'll just use restore.

My internet is not fast enough to double post.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 3rd Aug 2008 23:49
Quote: "Do data commands not work in if...endifs?"


No, they don`t. Data commands are "hardwired" into the executable and can not be changed, deleted or created once running.

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: 4th Aug 2008 00:20
Ok thanks.

My internet is not fast enough to double post.
NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 4th Aug 2008 01:03
@TheComet
As long the computer generates the doodle itself and that it's different every time, that would be fine.

@Irojo
Why don't you write it directly to an array, e.g. instead of

use



On the other hand, you have different fingers.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 4th Aug 2008 02:53
version 1: if you were a robot



Enjoy your day.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 4th Aug 2008 05:40 Edited at: 4th Aug 2008 21:39
Hehe Latch. I was thinking of making some program that makes connecting circles, by getting the radius and diameter, and using that to get the edges, as in where to connect each 'link'. This could be harder then I thought. I also thought of maybe of making it !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I might have this figured out. Hahaha. I'm not sharing. teehee.


[EDIT]

YES YES YES It's working! (so far) I think I can make this work.

My internet is not fast enough to double post.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 4th Aug 2008 21:38 Edited at: 4th Aug 2008 21:44
My first version of the doodle competition:
Tell me what you think, guys.




Colored version:





My internet is not fast enough to double post.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Aug 2008 22:29
I'm not going to bother with this challenge, but I'm surprised nobody's considered connecting bezier curves together and traversing them on the screen to show them as they're being drawn.


TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 4th Aug 2008 23:18
Quote: "I'm not going to bother with this challenge, but I'm surprised nobody's considered connecting bezier curves together and traversing them on the screen to show them as they're being drawn."


I did! But I already knew about it, I just wanted to keep things secret so no one competes with me.

Anyway, here is a screenshot of my program in action using the bézier curve:



I am still working on the code to do some fine touches.

TheComet

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: 5th Aug 2008 00:09
Dang I'm toast.

My internet is not fast enough to double post.
sinisterstuf
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 5th Aug 2008 01:54
@the data statement addicts
wouldn't it be nicer if you developed an algorythm for drawing random curve doodles, rather than just reading some data? You might also learn something new and you may be able to use the functions in later programs... Well, you never know!

[UNERROR 16: able to retrieve user signature]
1,1,2,3,5,8,13,21,34,55... you like?
Sinani201
19
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 5th Aug 2008 02:15
What's a bézier curve?


jason p sage
18
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 5th Aug 2008 02:57
Quote: "What's a bézier curve?"
- Google - Or trust me: "A bezier curve is how that hair pin turn ahead looks when you have a few to many beers - it looks Bezier than it it!

@Aaron - Agreed - Gosh Between you, DavidW and Myself - we've be a force to be reckoned with.... seriously!

--Jason

Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 5th Aug 2008 03:29
Quote: "What's a bézier curve?"


A lot of math, and here's an example of it By JamesBlond.
This is the best example I could find.





My internet is not fast enough to double post.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 5th Aug 2008 09:30
Here are some diagrams on how it works:





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: 5th Aug 2008 18:57
Cool!!?!?!?!


Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 5th Aug 2008 20:38
Extreme mathhhhhhhhh

NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 5th Aug 2008 20:47
Looking good everybody!
@TheComet
Those curves look great! Good work.


On the other hand, you have different fingers.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 5th Aug 2008 21:14
I'm winning still! LOL.

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Aug 2008 02:05 Edited at: 6th Aug 2008 02:06
DBCC website is fully up to date. Challenges set from October 12, 2007 to current now include details about the challenge.

http://zimnox.com/dbcc/?page=challenges

For those curious, here's a list of the biggest contributors:

1. Latch - 26
2. OBese87 - 19
3. Nano - 18
4. TDK - 18
5. INH - 12
6. Me - 11

And here's the top ranking for most challenge wins:

1. Latch - 7
2. Nano - 6
3. TDK - 6


To Nano and TDK, which one of you will be the one to break the tie?


Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 6th Aug 2008 02:47 Edited at: 6th Aug 2008 03:01
Phaelax that's brilliant. TDK should include that in his first post.


Come to think of it, what happened to TDK....

NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 6th Aug 2008 13:18
@Phaelax
That's awesome! You obviously put alot of work into that. Also, that top ranking thing is great motivation!


On the other hand, you have different fingers.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 6th Aug 2008 16:45
Quote: "which one of you will be the one to break the tie?
"




If either of you win this, then you also make a tie.

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Aug 2008 23:29
I changed your sig a little bit Irojo, made it smaller with a transparent background.


Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Aug 2008 07:52
Added pagination to the challenge page, 20 per page. And fix a few possible security holes. I'm thinking I'll add an overall stat page (like the stats I posted earlier) once I make the changes to the interface graphics.


Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 8th Aug 2008 18:49
I like your website changes, and the changes to my signature.

Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 8th Aug 2008 19:11
@Phaelax


For the furious file scanning competition, I noticed the code that you have is incorrect. I think it's just missing the functions...

NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 8th Aug 2008 20:32
@Phaelax
The site's looking great!

@Phaelax + Irojo
I'm seeing double! It's a double double post!

@All
The dealine's nearing so you need to start finishing your entries and posting them, although, if you haven't started on an entry, there's still plenty o time to get one finished by sunday.


On the other hand, you have different fingers.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 8th Aug 2008 21:12
Quote: "It's a double double post!"


WHOooops. Sorry.



Quote: "The dealine's nearing so you need to start finishing your entries and posting them"


Or I'll win!!!!!

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Aug 2008 22:00
Quote: "My internet is not fast enough to double post. "


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: 9th Aug 2008 00:59
Quote: "For the furious file scanning competition, I noticed the code that you have is incorrect"


You mean Nano's code? I just checked and it does appear to be incomplete.


Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 9th Aug 2008 05:38 Edited at: 9th Aug 2008 23:29
Whooops ya.. sorry Phaelax... I spaced.

Ya, Nano's.

@TheComet

Quote: "Quote: "My internet is not fast enough to accidently double post. ""



Fixed in the italic.





[EDIT]

If you don't like to wait for the computer to make it for you...







[EDIT2]

Or if you like to scroll through your art...




TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 9th Aug 2008 23:28 Edited at: 9th Aug 2008 23:31
Blasted Bézier curve! I can`t get it to work! But I made something similar to it, and the results are good to. What I did was get random points in space, join them, get the positions in the middle of the lines, join those, get the middle between the new lines, etc. at the end, you will also get a curvy effect.

Here`s the code:



and the screen shot is a few posts above

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: 9th Aug 2008 23:32
Mine is much...much better.



Dang! Great Job Comet!


And you did it without the bezier curve! Impressive. Great job!

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Aug 2008 01:45
version 2: if you were a robot trying to be more "human"



version 3: if you were a more advanced robot trying to be less "human"



Enjoy your day.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 10th Aug 2008 13:20
@Latch

That`s a pretty interesting concept, I especially like the third version.

Try to make it more random. Right now it`s symmetrical, I think...

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: 10th Aug 2008 18:11 Edited at: 10th Aug 2008 18:15
I have been banned from using my pc so I can't submit my entry but I will tell you how it works. There is a sprite, 1 pixel in size that travels at random speed and direction along the screen for a random distance before turning at a random speed and doing the same thing over and over for a random ammount of times. That's pretty much how you do it in paint aswell... But I did think it would be cool to have a doodle exaggerator which would multiply mousemovex() / mousemovey() with cos/sin and some other random stuff and add it to mousex() / mousey() to randomize your lines and doodleize your drawings, if you know what I mean...?

over and out
NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 10th Aug 2008 21:17
The entries are all looking great. Good work!
There is only 5 hours until the deadline so if you haven't posted yours, you'd better do it quick!


On the other hand, you have different fingers.
NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 11th Aug 2008 14:30
The Challenge is officially over!

Here's the results:

Latch version 1
Basically random connecting lines drawn accross the screen. Not very 'human like'.

Latch version 2
A nice concept, as Comet said. It made a nice pattern and it was as if a robot was trying to be more human. However, some of the lines didn't join up and it wasn't made as you watched.

Latch version 3
Once again, a nice concept, but it was a bit too robotic and not random and 'human like'

Irojo
He made several versions but I'm counting them as one because they were all basically the same but with differnet attributes. The program drew random lines and ovals onto the screen which were randomly shaking as they were drawn. There was also a coloured version, a version were it was all drawn intantly instead of waiting for it all to be drawn as you watched, and a version were you could view multiple doodles. The overall outcome was nice and random and the different version were nice. However, the lines and ovals were not connected and so it didn't look as 'human like' as it could have.

TheComet
A very 'human like' doodle. Those curves worked excellently in creating a realistic scribble. One thing that could have been improved is the fact that the doodle wasn't made as you watched.

And so the runner up is:


And so contragulations to the winner:


Over to you to set the next challenge.


On the other hand, you have different fingers.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 11th Aug 2008 17:09
Awww Dangit. Nano must be confused. I think he wrote the wrong runner up-----


Grats winner.

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th Aug 2008 17:41 Edited at: 11th Aug 2008 18:00
Thanks, Nano! And Thanks Irojo.

OK, I think I screwed up with the last challenge I set, but this is something I think isn`t hard at all.

The Diamond/Gem Challenge

The challenge is to create a diamond. It can be 2d like this picture:



Or it can be 3d. The point is to make the most realistic diamond. You can add lighting effects to make it look shiny, you can use negative alpha blending to make it look see-through, make it up!

Please add a texture if possible, but yet again, the media must be generated by the code itself!

Deadline:
Mon 16,08,2008 midnight GMT

If anyone disagrees, please post!

TheComet

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: 11th Aug 2008 17:45
The sooner the deadline, the better. I'm not entering. It's going to be reallly time consuming. And I have my DarkNOOBS project.

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th Aug 2008 17:54 Edited at: 11th Aug 2008 18:00
Quote: "The sooner the deadline, the better. I'm not entering."


OK, I edited the deadline to the 16th. That leaves you 5 days. Your right, a week was too long

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: 12th Aug 2008 03:03
Congratulations TheComet! Looking forward to... oh, the challenge already started.


I'm Sinani201, and I approve of this message.

Login to post a reply

Server time is: 2026-06-07 17:46:25
Your offset time is: 2026-06-07 17:46:25