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
Bad Barnabe
17
Years of Service
User Offline
Joined: 6th Jul 2007
Location:
Posted: 9th Jul 2007 03:35 Edited at: 9th Jul 2007 22:24
Allright, so here's what i have so far... Nothign amazing really, just wanna know your toughts about it. Its not finished!

I dont know if its my computer glitching, but the grid should appear line after line. I say this because it did this to me when i made tilemaps, it shown tile after tile even tough it didnt mention anything like that in the tutorial i was following. Anyways:



Your signature has been erased by a mod
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 9th Jul 2007 14:08 Edited at: 9th Jul 2007 14:11
There is no reason for the vulgarity of your second snippet. I hope that a mod removes it altogether.

LB
NinJA999
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: NH
Posted: 9th Jul 2007 19:14
Bad Barnabe:

If you aren't going to change the value in a variable, it's faster to just set the value in the function:

instead of


try



and I agree with LBFN about your signature code snippet.

Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 9th Jul 2007 19:15 Edited at: 9th Jul 2007 19:17
Thank you for that pleasant code snippet, bad barnabe.[/sarcasm] Thankfully, no-one=dumb here.
Edit: Oh, it's your sig. Didn't realise.

Your signature has been removed by someone becasue it was vaguely intelligent.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 9th Jul 2007 21:31 Edited at: 9th Jul 2007 22:26
Bad Barnabe's sig is a breach of this web site's AUP and it has been removed. TGC have made it quite clear to moderators that they will not stand for obscene language on a forum which can be accessed by children.

TDK_Man

Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 10th Jul 2007 04:12
Speaking of sigs, did INH remove his sig, or did someone really remove it?

Did someone say 3D scanning on my desk, or was that just an AdBot?
What happens when when you mix coke, pop rocks, vinegar, and baking soda?
Zombie 20
18
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 10th Jul 2007 04:48
Hey guys, I"m sorry i really am but this heat is driving me up the wall and we our a/c is on the fritz. I've been a little less than pleasant to be around much less be coding, so um..I've been in the bathroom floor (the coolest place in the house) studying. What I'm saying is if this heat keeps up tomorrow i am out of the challenge, I can't do much when its really hot out, summer's break me.

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 10th Jul 2007 04:55
Quote: "Speaking of sigs, did INH remove his sig, or did someone really remove it?"


If a mod had done it, I'm pretty sure it would have been spelled correctly!

TDK_Man

LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 10th Jul 2007 05:09
INH

Your sig talks about it being removed because it was vaguely intelligent, but you didn't spell 'because' right! LOL
You did that to give us a laugh, right?

LB
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Jul 2007 09:25
I'm surprised I haven't seen this yet: TIC TAC TOE

Left Click on a square to place your mark. The human is O the computer is X. There aren't any levels of AI, so the computer plays a pretty competent game and you'll probably tie most of the time. After a game, press ENTER and it will restart.



Enjoy your day.
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 10th Jul 2007 19:56
@All of you talking about my sig- I removed it, not a mod. I doubt they would remove it for being vaguely intelligent. And I spelt Because wrong by accident.
@Latch- Cool! I lost alot...

Your signature has been removed by someone becasue it was vaguely intelligent.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Jul 2007 16:09 Edited at: 11th Jul 2007 16:10
@ Latch
Both your entries are great are very tidy. The Tic-Tac-Toe even taught me a new trick of how to win! I will never lose again
Thanks for the suggestion, however I don't think my entry is original enough to win so I'm gonna try something else, maybe a game.

@ INH
It's supposed to stop the mouse leaving the grid when you're creating it but there's lots of glitches and I haven't given it much attention

@ Bad Barnabe

here's how I would have done it:

But it still isn't funny or clever.

I make music and art. Here is a sample of my art: done in Paint! It's all I have
MikeB
18
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 11th Jul 2007 16:40
I don't think that would work... You need this...


"Change is inevitable. Except from vending machines."
"Two negatives make a positive, but two positives do not make a negative." "Yeah right."
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Jul 2007 19:47
@ Eldest Dragon
Well that implies that you'd have to check more than once if you're dumb lol.
But anyway we are giving it too much attention, back to the challenge!

I make music and art. Here is a sample of my art: done in Paint! It's all I have
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 11th Jul 2007 22:03
Oh, you mean like draw everywhere but where you placed the circle... no, that's a good idea for a funtion

Quote: "Closing date Thursday July 12th at midnight GMT."


Don't look at my sig!
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 11th Jul 2007 23:47 Edited at: 11th Jul 2007 23:51
*gasp* tat meens thee cha-lenge wil bee ovur tumahroh!!! lol, I don't know why I typed like that.

Eldest Dragon, I like your new avatar, it's funny

Latch, I was looking at your code, and I noticed that middle square MUST be occupied within the first 2 turns.

Did someone say 3D scanning on my desk, or was that just an AdBot?
What happens when when you mix coke, pop rocks, vinegar, and baking soda?
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 12th Jul 2007 00:50
@data
Quote: "thats really cool Latch especially how you used it as a texture."

Thanks

@Obese87
Quote: "Both your entries are great are very tidy"

Thanks!

@Sinani201
Quote: "Latch, I was looking at your code, and I noticed that middle square MUST be occupied within the first 2 turns"


That is correct. It's the best way for the computer to set itself up for a win or a draw. So if it's empty, the computer will move there. Even with that move though, the computer can make a mistake because it will make a random move until it sees a possible win or a block. This bit of randomness is what will allow you to beat it.

Enjoy your day.
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 12th Jul 2007 18:06 Edited at: 12th Jul 2007 18:08
Now your programming AI! And AI that isn't indefeatable!
Calm down Alex...
Yes, his new avatar is funny. I will make one point though: Oil isn't blue (assuming that's oil)

I never tell the truth.
That's a paradox, too.
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 12th Jul 2007 19:31
Here is my entry for the challenge.



LB
MikeB
18
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 12th Jul 2007 20:42
People like my avatar! I should have made one of those "Like my new avatar?" threads in Geek Culture...or maybe not .

Mike

I used to be Eldest Dragon, but I asked for my name to be changed.

"Change is inevitable. Except from vending machines."
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 12th Jul 2007 21:09
LOL LBFN, if you're not Lee Bamber, what does the LB stand for?

Did someone say 3D scanning on my desk, or was that just an AdBot?
What happens when when you mix coke, pop rocks, vinegar, and baking soda?
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 12th Jul 2007 22:33
Large Brain.
Lol, TDK, I just noticed that your avatar is the same as the TDK video company logo. Whay are you called TDK anyway?

I never tell the truth.
That's a paradox, too.
MikeB
18
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 12th Jul 2007 23:19
Maybe it stands for:
Lee Bamber For New president. I won't go into why president isn't capitilised, as political discussions aren't allowed .

Mike

I used to be Eldest Dragon, but I asked for my name to be changed.
"Change is inevitable. Except from vending machines."
"Welcome to the United Lawsuits of America."
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 12th Jul 2007 23:26
@ Sinani201

I like INH's definition .

LB
MikeB
18
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 13th Jul 2007 00:07
Quote: "I like INH's definition ."

What was INH's definition?

Mike

I used to be Eldest Dragon, but I asked for my name to be changed.
"Change is inevitable. Except from vending machines."
"Welcome to the United Lawsuits of America."
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 13th Jul 2007 00:21
@ MikeB

The avatar is sick, but yet funny at the same time!

To quote INH
Quote: "Large Brain."


I posted that before I saw yours. Maybe it should be "Next" instead of "New". I can hear Lee now, "A fast computer in every home, DarkBasic for everyone!"

LB
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 13th Jul 2007 02:00
Quote: "Lol, TDK, I just noticed that your avatar is the same as the TDK video company logo. Whay are you called TDK anyway?"


I think he owns the company.

LOL, large brain. LBFN, when I first saw you post here, I thought you would be mean because of your avatar. The guy in there looks mean

Did someone say 3D scanning on my desk, or was that just an AdBot?
What happens when when you mix coke, pop rocks, vinegar, and baking soda?
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 13th Jul 2007 02:12
@ Sinani201

OW! That hurts! (I'm kidding). I picked that avatar because it sort of looks like me 20 years ago. My wife agrees, so I guess I'm a mean-looking guy.

I've got some thoughts for making my own avatar, it's just finding the time.

So, based upon your avatar, you're from Wisconsin?

LB
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Jul 2007 03:18
Competition over guys!

It's late here and there looks to be a fair few entries so I'll look at them all and announce the winner tomorrow (Friday).

TDK_Man

Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 13th Jul 2007 04:27
TDK, do you work of the company TDK? It kinda sounds weird to ask but I'm just wondering...

Did someone say 3D scanning on my desk, or was that just an AdBot?
What happens when when you mix coke, pop rocks, vinegar, and baking soda?
MikeB
18
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 13th Jul 2007 12:24
Quote: "The avatar is sick, but yet funny at the same time! "

Yeah...I know I should grow up and act my age...but burning stick figures is fun

Mike

I used to be Eldest Dragon, but I asked for my name to be changed.
"Change is inevitable. Except from vending machines."
"Welcome to the United Lawsuits of America."
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 13th Jul 2007 15:02 Edited at: 13th Jul 2007 16:23
AH dang it! I'm too late
Oh well at least I got half an entry in this time

@ TDK
I think you should post a sticky explaining your name lol
That's about the fifth time I've seen someone ask you what it means.

TDK: Third Dimension King? lol

I make music and art. Here is a sample of my art: done in Paint! It's all I have
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 13th Jul 2007 18:25 Edited at: 13th Jul 2007 18:31
It is The Darkbasic King. Bow down.
Ohhhhh... competition winner soon... I'm excited.
EDIT: I just looked at LBFNs. We're all beaten.

I never tell the truth.
That's a paradox, too.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Jul 2007 18:50 Edited at: 13th Jul 2007 18:51
Phew... 11 entries to check!

As there are so many I'll leave out the individual comments this time apart from saying well done to all who entered.

What I will say though is that most of the entries when run on my machine had the dreaded flashing problem - for both Sync and where Set Text Size was used.

I didn't take this into account when judging, though it's something you should think about if you want your programs to run on other people's machines. There are a couple of threads on the DBC board which talk about this subject and Heartbone suggests a couple of things you can do to prevent it which may work for you.

I narrowed it down to two entries which were so close I couldn't decide between them. Being unable to have two winners, I decided to toss a coin. Apologies for this, but if I didn't do it, I'd still be trying to decide between them both...

So unofficially, the following two entries are both winners as far as I'm concerned, but for the sake of picking the next challenge:

Runner Up:



Winner:



TDK_Man

Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 13th Jul 2007 19:16
Yeah! Well done latch and LBFN!
But... I'm scared of LBFN's challenge.

I never tell the truth.
That's a paradox, too.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 13th Jul 2007 19:21
Congratulations LBFN!
The bugs, THE BUGS!

Enjoy your day.
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 13th Jul 2007 19:36 Edited at: 13th Jul 2007 20:10
Gratz LBFN. I sorta like that game but I think I got fired (in the game, not in real life)

BTW, I think TDK is supposed to ignore all the people who ask about his name. he ignored me... or maybe he didn't read the post...?

Does anyone like my logo for this thread?

It's the header for the site with all the challenges and codes on it, since Phaelax left this thread and stopped doing it. You can visit the site, but that's all that's on it.
dbcodingchallenges.bravehost.com

Did someone say 3D scanning on my desk, or was that just an AdBot?
What happens when when you mix coke, pop rocks, vinegar, and baking soda?
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 13th Jul 2007 21:03
Quote: "The bugs, THE BUGS!"

I know exactly what you mean. BTW, what's the significance of the rival's name?
@Sinani201-
Have you Phaelax's permission? For arise copyright issues may, if thee has no permission.

I never tell the truth.
That's a paradox, too.
NinJA999
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: NH
Posted: 13th Jul 2007 21:14 Edited at: 13th Jul 2007 21:16
Neat logo! I'll be willing to set up a little db coding challenges site similar to phaelax's site (talking to phaelax, of course), if you want me to (i'll use sinani201's logo if he lts me), and I'll host it on my website, so there are no issues with free hosting limits etc. I have some experience in web design, and I'll also get in contact with phaelax to see if I can cooperate with him to get some of the code transferred from his site. Feedback on this idea anyone?

It's at http://dbcc.nictitatingrabbit.com/. Just a placeholder for now, but I'll get working on it if that's OK.

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 13th Jul 2007 21:17 Edited at: 13th Jul 2007 21:19
@ LBFN
Wow that was impressive, everything was really well drawn too (that must have taken some time).
It reminds me of those old arcade games that I'm too young to remember lol

@SINANI

I don't really like the logo to be honest Reminds me of bogey

I am king of the noobs!
NinJA999
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: NH
Posted: 13th Jul 2007 23:04
Now that I look at it, I kinda agree with you about the "bogey" thing. Maybe if the text was a different color? Also, the cup could be a little less pixelly. Anyway, what do people think about the site? While I may not be the *best* website layout artist, I am really good at PHP, and I should be able to code up an automated system or something.

Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 13th Jul 2007 23:45
how do you start a new challenge??

The problem with the gaming community is people think that the resolution of a game defines how good it is. I am not afraid to make a game where the main character is 50x50.
NinJA999
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: NH
Posted: 14th Jul 2007 00:11 Edited at: 14th Jul 2007 00:17
@Pixelator: ??

@everyone:

Here's my logo (or at least an early version) see if you like it. Also, anyone thinking about my offer?



I know it's kinda busy-looking, but I was screwing around, and I figured it's worth a shot.

[EDIT] D'oh! It's "Dark Basic Coding Challenges" oops!

New Header:



Tho I kinda like "Dark Basic Classic Challenges" what do you think?

Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 14th Jul 2007 00:24
@NinJA999

i want to make a challenge. how do i do that?????????????

The problem with the gaming community is people think that the resolution of a game defines how good it is. I am not afraid to make a game where the main character is 50x50.
NinJA999
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: NH
Posted: 14th Jul 2007 00:28
@pixelator
??? what do you mean? did you read the first post in this thread? the challenges are set by the winners of the previous challenges, and the way to win is to program something in DBC that fits the challenge requirements.

LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 14th Jul 2007 00:38
Congratulations latch - very nice work! I got lucky on this one!

Everyone - thanks for the comments, the game turned out better than I expected it would.

Since my last challenge was sort of tough, I thought I would try something that might be easier to do, and yet be fun and challenging at the same time. I hope you will find that this challenge meets that criteria.

DBC Challenge:
- Make a game that has items (I don't want to say objects because it can be 2D or 3D) moving toward the player
- The items may fall from the sky or may come toward the player from the sides or from the bottom of the screen. Multiple directions would be fine.
- The player must either catch, destroy or somehow avoid these moving items
- Powerups are encouraged
- The deadline is Friday, 7/20/07 at 12:00 midnight GMT


Good luck to all,

LB
Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 14th Jul 2007 12:22
Ooooohhh, I have an idea for this.
Powerups? Hmmmm, tricky, potentialy.

I never tell the truth.
That's a paradox, too.
NanoGamez guy
18
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 14th Jul 2007 16:11 Edited at: 14th Jul 2007 16:13
Congratulations LBFN! Cool challenge. I'm sure there'll be alot of entries for this one...

Unlucky Latch, Great entry though!

[EDIT] Great logos, wish I was as good as that!


Nothing is impossible...
No really, it is.
NinJA999
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: NH
Posted: 14th Jul 2007 16:17
@NanoGamez guy:
good? hah! you must have not been talking about mine!

seriously though, what do people think about trying to "revive" the site?

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 14th Jul 2007 16:45
@ Ninja999

I like your logo but I think you need to make the letters stand out more, maybe put a faded black outline around them?
I think the site is a good idea (I thought Phalanx had one?) if its gonna be like that then its definitely a good idea.

I am king of the noobs!

Login to post a reply

Server time is: 2025-05-15 20:52:26
Your offset time is: 2025-05-15 20:52:26