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: 17th Dec 2008 11:17
Thanks, guys!

Quote: "DBC Challenge Rank: Rookie"


Just wondering... How do you know what positions you are at?

Peachy, and the Chaos of the Gems

Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 17th Dec 2008 22:52
Quote: "Quote: "DBC Challenge Rank: Rookie"

Just wondering... How do you know what positions you are at?"

Ranking was an idea someone had a while ago (can't remember who), I took up the idea and came up with a simple enough system for how it would work...

Anyone new entering a challenge is given the rank "Rookie", if their entry is judged the best out of all others with the same rank they win promotion to the next rank ("Veteran" in this case). If they are the best out of all entries in a higher rank they will also win promotion. There must be at least 4 opponents for a valid promotion.
The ranks are: Rookie, Veteran and Expert.

The idea was that this would allow newcomers a chance to win while also heating up the competition between more experienced coders.
It hasn't really taken off though...

A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
jason p sage
18
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 17th Dec 2008 23:04
I wonder if it would help if there was a "ScoreKeeper" of sorts where after each contest and email was sent to the "moderator" with a list of "Logins" and the winner. I might consider offering this service as well as a web site to display the current results.

I think it would be cool to also store links to people's actual entries (direct link to forum posts) but that might be more to manage and make it a bit labor intensive.

The mechanism I'm suggesting would honor the "Ranking" rules... and the current person running the current challenge would just submit something like:

Obese87, JasonPSage, TheComet, Ashingda 27 - winner: TheComet

Then the rest would just be processed and posted by me .. or anyone else who would like to volunteer this service (hosting and managing the "scoreboard" and "Rank List"

--Jason

BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 17th Dec 2008 23:07
It could even be tied into phaelex's site, to keep it all in one place, or at least linked to from it.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 18th Dec 2008 00:08
Quote: "It could even be tied into phaelex's site, to keep it all in one place, or at least linked to from it."

that would be good if it was all in one place then people wouldn't have to update their own rank.

Quote: "I wonder if it would help if there was a "ScoreKeeper" of sorts where after each contest and email was sent to the "moderator" with a list of "Logins" and the winner. I might consider offering this service as well as a web site to display the current results."

That would probably help Phaelax with his site too.

A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
jason p sage
18
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 18th Dec 2008 01:17
Yes sir, and I don't think this would be a huge project to do - just a pet project.. and absolutely link it to whomever's site.. it's ok if its distributed.. kinda like a TEAM effort

I don't want to take web site visits or anything.. shoot - it effects my own bandwidth LOL - but I think this is not a huge deal and would help elminate troubles with ranking and make it over all fun and motivating.. and I certainly wouldn't allow people to change their own ranks.. the current "Challenge Setter" would just go to a web page and fill in a few fields and hit submit. For Verification I could just take a pop over to the TGC forum and verify that "Challenge Setter's" post matches the submission, and then apply the "Rank Algorythm" and whella.. web page updated

Let me know if you think I should proceed. Not trying to hijack this thread - I'll make one for the DBPro challenges as well... And

@Phaelax.. if you see this email me your thoughts. If you'd like to do this yourself.. then by all means I hand the torch to you. If you want me to do it.. or there isn't an objection - I'll put something together.

--Jason

Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 18th Dec 2008 01:20
Sounds good to me

A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 18th Dec 2008 02:55 Edited at: 18th Dec 2008 15:52
Sounds good to me too.

--
Anybody else got some entries coming?


I download memory.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 18th Dec 2008 09:14
Quote: "Anybody got some entries coming? "


Yup, look a little further up

TheComet

Peachy, and the Chaos of the Gems

Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 18th Dec 2008 15:53
Ooops. Ya I noticed that one. I was hoping someone else would enter. You always win!


I download memory.
Tone3e
19
Years of Service
User Offline
Joined: 17th Feb 2007
Location: here
Posted: 22nd Dec 2008 04:21
awaesome, this thread is still going on. Some of you may remember me but probably not. Well i just finished my first quarter studying as a computer engineer and i learned how to program in c. i am on vacation now and i tought i would look over some old programs i wrote for these challenges. guess what...i dont remember most of the commands or the syntax....haha. it was wierd. well anyways im here for two more weeks so ill take a look at some tuts and try to remember and i will join this comp. well i think i have an idea.

[center]
Come see the WIP!center]
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 22nd Dec 2008 15:28
@Tone3e

Heh, before I joined the forums, I read every single page of this thread. I know who you are, but you don't know me.
It'll be nice to have another entrant.
Unfortunetly, this challenge is over.
--
Challenge Closed
Sadly, with only one entry, TheComet wins.
That game was VERY hard. Well done TheComet!!


I download memory.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Dec 2008 15:38 Edited at: 22nd Dec 2008 17:12
Thank you Irojo!

I have the feeling that this thread is dying... It is always good to have another member!

Challenge

This challenge is pretty obvious, so here it is:

Christmas Challenge

Make a Christmas game. Anything you like, anything that comes to mind, anything your powerful fantasy can produce. There is only one rule: Don`t use the code from last christmas.

I hope a few people join!

Deadline

5,1,2009 24:00 CET

TheComet

Peachy, and the Chaos of the Gems

Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 22nd Dec 2008 16:08
Quote: "I have the feeling that this thread is dying... It is always good to have another member!"

Well it is christmas.
There haven't been more than 3 people entering at a time for a while though. Is TDK going to be entering?

A christmas challenge that ends 5th January?


Goke of the day: I coded an AI replica of Steve Irwin. It crashed because of a string array.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Dec 2008 17:10
Quote: "A christmas challenge that ends 5th January?"


Is there something wrong with that?

Peachy, and the Chaos of the Gems

NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 22nd Dec 2008 21:11
Does it have to be a game?


"To succeed is not enough, others must fail" - Gore Vidal
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 23rd Dec 2008 08:17
Nope. It just has to be amusing!

Peachy, and the Chaos of the Gems

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Dec 2008 04:09
I've been sick for the past week and don't have the internet at home except for my iphone.

Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 28th Dec 2008 02:44 Edited at: 28th Dec 2008 18:06
Ok here's my entry. Move the mouse to shoot.



I though I'd exercise some of the things I learned from the current DarkNOOB Project.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 28th Dec 2008 14:31
Wow, that is pretty awesome!

I got 565 points... Is that good?

Critics:

-The Snow that comes out of the snow cannon is too, uhm, white... I can`t see it so well...

-Make the snowmens arms brown, it will look better

Otherwise looking really cool!

How did you do the slope collision for the snowmen?

TheComet

Peachy, and the Chaos of the Gems

Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 28th Dec 2008 15:06
Quote: "How did you do the slope collision for the snowmen"

I used a WayPoint. It's just a series of coordinate, while connecting the points to draw a line I recorded each x,y position and saved it into an array for easy access.


Quote: "I got 565 points... Is that good?
"

That's pretty darn good, I didn't get pass 200.

Thanks for critics, the colors should be easy to change.
Tone3e
19
Years of Service
User Offline
Joined: 17th Feb 2007
Location: here
Posted: 29th Dec 2008 08:04
Wow, that is a great game. I really like the idea. I was thinking about doing something like that, but i didnt think i would be able to because i am not good enough at coding. Well i have been thinking about what i could do and this is what i came up with. Nothing coded yet, but i have the idea and i know how i am going to do it as it is a very simple game.
My idea: The monty hall problem.
I will have three cubes with a texture(presents).
There is a piece of coal in two of them and and awesome present in one.
The user clicks one of them.
One of the presents you did not choose is revealed to have coal.
The user is given the option to switch presents or to stay.
The object is to not get the coal.

Its pretty simple to do, i think. All i have to do is randomize a variable to choose between 1 and 3 and check if the one the user chose is the same as the random one. Although i think i will run into problems if i want to do the clicking on objects to choose. I am not sure I know how to do that. Tutorials anyone? or what is that called? Ill try to code what i can in the meanwhile. Also is this a good idea? I could do it just using text, but that would be boring...

[center]
Come see the WIP!center]
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 6th Jan 2009 21:46
What's the status on the current challenge?

Enjoy your day.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 7th Jan 2009 10:03
Quote: "What's the status on the current challenge?"


The Challenge is OVER!!

The runner up is


And the winner is


TheComet

Peachy, and the Chaos of the Gems

Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 7th Jan 2009 15:33
Grats to the winner!

Runner-up- It was a really close one. Try harder mate, and you might win.



Hee hee.


Time is money. I just ripped you off.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 7th Jan 2009 18:23 Edited at: 8th Jan 2009 05:53
LOL.

Alright first time I won, was a really tough competition didn't know if I'd make it.



Challenge
Code a scrolling window.

Generate at least 60+ strings and display them in a window viewer. The trick here is to have a scroll bar at either the left or right side of the window that allows the user to view all the 60+ strings scrolling up and down.


It's more favorable it is: Creative, Simple, versatile, andor Works.


Deadline
Three weeks from now. January 29, 2009 Midnight Central Time

Again, if this has also been done let me know.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 7th Jan 2009 19:48
Sorry Ashingda:

http://zimnox.com/dbcc/?page=view&challenge=Opaque%20Shape

Pretty much the same.

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: 7th Jan 2009 20:33
I disagree with BN2.

This is essentially making a fill in paint tool.

Oddly, I was considering how to make a fill in tool lately. I think I have something for this challenge.

I like it.


Time is money. I just ripped you off.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 7th Jan 2009 23:52
Yet the approach was to allow the user to draw an object, then it fills it in (or just draws a filled region on its own). This would use a fill function.

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: 8th Jan 2009 03:49
I agree with BN2, I think this challenge has been done.

Enjoy your day.
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 8th Jan 2009 05:54
I changed the challenge, look up ^
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 8th Jan 2009 17:17
Interesting challenge.

I am nearly positive it hasn't been done before.


Time is money. I just ripped you off.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Jan 2009 17:51
Aw, I liked the fill challenge... But this should also be fun! ^^

TheComet

Peachy, and the Chaos of the Gems

BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 8th Jan 2009 19:07
Well might as well get this one going. Only a first rate effort, but I have the concept down, so I can make it look nice.

The sliders will automatically scale themselves to the size that they need to scroll through (so a long bar means that there isn't much past the edge of the screen, whereas a small bar means that there are MANY lines past the screen).



Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 8th Jan 2009 20:54 Edited at: 8th Jan 2009 20:55
Very nice, I like how you used the bitmap to get the string image that would exceed the screen height. It never occurred to me to use it that way.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 8th Jan 2009 22:27
May I use your genstring function?


Time is money. I just ripped you off.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 8th Jan 2009 23:49
@irojo
Sure no problem.

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: 9th Jan 2009 17:33
Thanks.


Time is money. I just ripped you off.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 14th Jan 2009 01:38
A scrolling window? Should be simple enough, I'll just repost my snippet from the furious file scanning challenge.

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Jan 2009 23:28
Ok, here's my entry so far. To demo, I copied the text from the intro of the Unix Haters Handbook. You can resize the window and scroll in all 4 directions, per-pixel scrolling not that choppy per-character scrolling!




Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 16th Jan 2009 06:55 Edited at: 16th Jan 2009 07:05
@Phaelax
Very nice, I like your capLength$() function very much and the usage of text width() command, didn't even know that existed.

Good use of visuals, nice and clean. While looking through the codes, it seems easy enough to adapt into any other programs that's a plus.

Your mouse scroll wheel was REMed out, was it not working?
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 16th Jan 2009 07:19
I haven't tested it yet, it was copied from another program of mine in DBP, so variables might not match up. But I have a new idea for the mouse scrolling now.

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Jan 2009 20:47 Edited at: 23rd Jan 2009 07:59
Here's my updated code and probably final revision. Finished adapting the mouse wheel scrolling and added a new scrolling method to mimic the 4-way scrolling seen in web browsers when you click the mouse wheel button (or whatever your 3rd button happens to be). Give it a try, it's neat! Fixed a minor display issue. Added a maximize button. Also added some menus, non-functional but shown just as demonstration for future possibilities.

Edit: Jan 22
- Scrollbars are now sized depending on amount of scrollable content.




Come on guys enter the challenge, it's not that difficult. I don't want to win by default like Nano! (just kidding)

I wanted to share a challenge idea before I forget. Create a version of hangman. Graphics would be secondary, code structure and optimization would be key objective. It's a simple concept that could lure a few more beginners into joining while being quite educational by learning from others' code techniques and trickery.




Your signature has been erased by a mod because it's larger than 600x120
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 19th Jan 2009 22:53
Awsome work and nice challenge idea, I love it!
NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 22nd Jan 2009 22:17
@Phealax
Great entry, I like the way everything is customisable.

Quote: "I don't want to win by default like Nano!"


I might just enter now!


"There is no charge for awesomeness" - The Kung Fu Panda
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Jan 2009 23:10
I swapped my code back over to DBP and added a few extra array commands to make the text editable like notepad. I'll post that later today in the forum.

You should enter, you got time.

Your signature has been erased by a mod because it's larger than 600x120
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 23rd Jan 2009 04:30
That's awesome Phaelax!

Enjoy your day.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 29th Jan 2009 20:05
Today is the deadline and there's hardly been any activity at all in this thread.

As for the code I ported into DBP, I've made it into a text editor complete with syntax highlighting; its in the WIP board.

Since I don't have Internet at home and Ohio has been pounded by ice storms (businesses closed, roads under 4" of ice plus another 4" of snow) I may not be able to get on within time to see who wins.(did anyone else enter) So if I win, just go with my hangman challenge described above. If I lose, well, you're all a bunch of taffers!

Your signature has been erased by a mod because it's larger than 600x120
Quirkyjim
17
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 29th Jan 2009 20:07
I'm in KY, and this is like the second biggest power outage since Ike, some 500,000 w/out power. Fortunately, I have power! Yays!

~QJ
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 29th Jan 2009 20:15
I never lost power, but I think over 10k in Ohio did. I got stuck yesterday trying to go uphill. Half way, car starts going backwards. Then today.... don't get me started, nobody around here knows how to drive in the snow.

Your signature has been erased by a mod because it's larger than 600x120

Login to post a reply

Server time is: 2026-06-08 16:42:32
Your offset time is: 2026-06-08 16:42:32