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
Quirkyjim
17
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 29th Jan 2009 20:53
Lol, on monday i got out of school from a dusting of snow.

~QJ
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 30th Jan 2009 00:30
My computer with DB and my challenge entry (Not finished)... died.... I have to reinstall windows according to our friendly forums tech support.


Time is money. I just ripped you off.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 30th Jan 2009 00:50
@Irojo
Can you hook your HDD to another comp as a slave drive and copy the files before you re-install windows?

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 30th Jan 2009 02:38 Edited at: 30th Jan 2009 02:39
I'm not very skilled with computer terms. Would you explain?


Time is money. I just ripped you off.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 30th Jan 2009 04:57 Edited at: 30th Jan 2009 04:58
On pc's, you can plug a max of 2 hard drives (or CD/DVD drives) onto a single cable (you will know because it is a REALLY FAT gray wire (approximately 40 small wires stuck together to make a band).

You might have to unhook your cd drive for this.

The hard drive back (where it gets plugged into) will look something like this:

____________________________
| ::::::::::::::::::: | :::: | oooo |
----------- -----------------

The farthest left section is where the band wire (the gray one) plugs into. Notice the notch on the bottom (I think it is the bottom). It will correspond to a notch on the cable, so that it only goes in 1 way.

The second section is for a jumper that will tell the computer how to treat the drive (master, slave, or CS). Look on top of the hard drive for info about which 2 pins to jump for CS (cable select). Make sure it is plugged into the SECOND plug on the wire (there are 2). You want cable select because that tells the computer that if it is in the second plug, it is a slave (additional storage, really), or Master if it is the first plug (primary boot drive).

The Blue end of the gray wire plugs into the motherboard (again, match up the notches).

For the 3rd set of pins (the 4 big ones), you plug in one of the plugs from the power supply (the big silver box that gets plugged into the wall). These will only go in one way and are standard for all hard drives and cd drives (so if you aren't sure what it should look like, or can't find a spare one, look at the computers other drives).

For the first plug, you will want a hard drive from another computer (or you could bring your hard drive to another computer entirely). This one should work. Ensure that it is set either to CS (cable select) or Master and plug the cable into it.

Boot the computer.

Windows should install the drivers to read it. You should then be able to move your important files from the "dead" hard drive to the one that works.

*NOTE 1: Make sure the power is OFF and the computer is disconnected from the wall before moving cables.

*NOTE 2: Make sure to GROUND YOURSELF before handling electrical components (make contact with the computers metal casing for a couple seconds).

*NOTE 3: If you don't know what a hard drive looks like, it is the only thing on the computer connected with the big flat gray cable that is NOT exposed from the front of the computer (usually it is about the size of a floppy drive and right underneath the floppy drive).

*NOTE 4: If the hard drive is completely corrupted, this might not work.

*NOTE 5: I probably got certain facts wrong here (ie, what things mean) but this IS how to do it (I have done it MANY times).

*NOTE 6: Don't pull ANY cables by the cable itself, and make sure all of them are fully inserted. When inserting, make sure to push directly forward and don't rock the cables (could cause shorting).

I think thats it, lemme know if you have any trouble.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 30th Jan 2009 16:18
The challenge is over!


Results:

BN2:
Intresting use of bitmap, I had no idea we can do something like that. Codes were nice and simple.

Phaelax:
Clean looking windowed viewer and extra features (mouse wheel) and plus for easy implementation.


Runner up


Winner
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Jan 2009 20:04
Yay I won! Wish more people would enter.

Though this game is simple, there's a variety of ways it could be coded or represented.


Challenge:
Create a version of hangman

Rules:
Points awarded for graphics, but the primary focus will be on code structure and optimization techniques.

Deadline:
February 9, 2009


I'll be looking for small code, low memory usage and speed. Those numbers will be relative to the presentation given. Obviously, if you display a graphical hangman versus an ASCII-based version, the code will be longer.

Your signature has been erased by a mod because it's larger than 600x120
NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 30th Jan 2009 23:37
Congrats Phaelax! Nice challenge.

Unfortunately, I couldn't work on my entry because of work. This is how far I got:



You can scroll with the scrollbar or the arrow keys.
Hold left and right click and move the move to change the bend.
Press space bar to reset the bend.
Press enter to switch between bend modes.


"There is no charge for awesomeness" - The Kung Fu Panda
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 5th Feb 2009 23:34
Is this thread dying? Where are the fierce competitors? I don't have much time these days to actually code... I'll try to put something together if there are at least two other challengers.

Enjoy your day.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Feb 2009 07:55
Been working on one, sorta. Its kinda been a hell week for me though.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th Feb 2009 23:50
Ok, here's something... Just didn't have time to do any polishing at all! I'm sure this is buggy, but it seems to work. I don't think I followed the flow of the subroutines I had in mind. The newgame flag was there to check for a restart but I didn't follow up with that! Oh Well!

I'm not sure what is going on, but for some reason, I just can't seem to code 2d with 3d anymore. Maybe it's changing the text sizes, I just don't know... Anyway, the 'gimmick' of this hangman version is the coding of the puzzles. I used a super easy encryption method that seems to be very difficult to break unless you know the key. If you weren't staring at the source, I wonder how hard it would actually be to crack - but since you are staring at the source, can anyone figure out what I did for the encryption?




Enjoy your day.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 10th Feb 2009 21:59
I'll review the entry tonight, but Latch wins since nobody else bothered. Where is everyone? Did everyone else move on to DBP?

Your signature has been erased by a mod because it's larger than 600x120
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 10th Feb 2009 22:11 Edited at: 10th Feb 2009 22:13
Haven't gone to DBP, just no time to code as of late. Hopefully will be able to get into the next challenge.

Started on this one, but didn't get enough to justify posting, but just for the heck of it:

It draws the hangman. Press 1-5 to control the different parts being drawn. All done with text.



Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 11th Feb 2009 21:42
Not bad BN2! The hands were kinda funny!

If there isn't any real interest in this thread, I don't know if I even want to bother posting a challenge.

Enjoy your day.
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 12th Feb 2009 23:28 Edited at: 12th Feb 2009 23:33
How about a challenge to make an object or organism that moves realistically; by that I mean a ball that actually turns as it rolls or a fish that swishes its tail to swim along. Anything you like
as long as its movement is logical.

It's disappointing that this thread isn't doing so well, I was starting to get enthusiastic reading through the last few challenges.
I have hardly been coding and still without a freaking computer, I'm going a bit doolally to be honest and don't even feel like coding.
I need some inspiration!

The Universe has been erased by a mod because it was larger
than 240x80 pixels.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 12th Feb 2009 23:47
I wonder how the DBP challenges are doing? I haven't looked over there in awhile.

Your signature has been erased by a mod because it's larger than 600x120
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Feb 2009 01:05 Edited at: 13th Feb 2009 01:27
May as well make use of this double post.

Any ideas for the DBCC website you guys might have?

[url="http://dbcc.zimnox.com"][/url]
Quirkyjim
17
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 13th Feb 2009 01:45
OMG, Phaelax! Can I has that siggy? I <3 it!

~QJ
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 13th Feb 2009 19:14
I haven't had time for a challenge, but if you could extend the deadline to the 22nd Feb, I will do something...

Peachy, and the Chaos of the Gems

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Feb 2009 23:09
Well there technically hasn't been a new challenge officially set.

[url="http://dbcc.zimnox.com"][/url]
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 15th Feb 2009 02:09 Edited at: 15th Feb 2009 10:51
@ Phaelax

How on earth did you change my sig?

Peachy, and the Chaos of the Gems

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 15th Feb 2009 10:37
Well, I'm still disappointed at the lack of interest lately but I suppose we'll trudge on...

Challenge: Remake of the Video Game BERZERK

You can find the basic details of the game here : Berzerk including how to play and the look of the game.

The game goes something like this: You are a humanoid in a sectioned room that takes up the whole screen. There are robots that are trying to shoot you. You can shoot the robots. The walls are deadly, collisions with robots or walls are deadly to both the robots and the players. The goal is to kill all of the robots and escape the room through 1 of the exits. When you escape the room, another room is redrawn and you are positioned on the opposite side of the screen from where you exited. The entrance you just came through is now blocked and there are other exits on the board. The difficulty increases as you clear all of the robots. There's a happy face named Evil Otto that makes it's appearance after most of the robots in the room have been iced. Evil Otto can pass through walls without getting hurt and destroys both robots and player. Evil Otto bounces up and down and follows the player until the player escapes or gets killed.

A 2d remake is fine. If you are feeling ambitious, a 3d remake would be great!

Deadline 15 March 2009 (midnight the 16th GMT)

Enjoy your day.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 15th Feb 2009 10:55
Nice challenge!

I love challenges that have to do with game making! What made you pick that game? And a whole MONTH to do it...

Peachy, and the Chaos of the Gems

Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 15th Feb 2009 19:27
going to have to look up methods of generating random mazes. I'll dig some up in the older posts buf if anyone has any tips let me know plz.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 15th Feb 2009 21:29
Quote: "What made you pick that game? And a whole MONTH to do it..."

Do you think that's too much time?

I remember playing this game and it was pretty fun. Very simple, but hectic as it goes along...

It seems fairly simple to design, basic graphics, ai that's not too sophisticated - unless one adds their own creativity to the mix. It should be challenging for the developer also since the characters should be animated, there has to be the control of multiple shooting objects - the robots and the player - there has to be movement control and collision detection of some sort...

Quote: "going to have to look up methods of generating random mazes"

The original game had very basic rooms. Usually a box of walls around the screen with 1 or 2 exits and a blocked off entrance, and the screen itself may have been divded into at the most, 4 or 5 distinct areas. If you simply made a series of rooms with a simple design, that would probably suffice and allow you the control of exiting one and entering another in the correct place. Also it would eliminate the need for a maze generator - but the methods used are open!

Enjoy your day.
Quirkyjim
17
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 15th Feb 2009 21:41
Hmmm, might have a job for my maze makifyer!

Anyone wanna use it here it is (I won't be entering)


Here's a maze to test it:


You'll have to adapt it, of course, but feel free to use it.

~QJ
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 16th Feb 2009 13:10
Quote: "Do you think that's too much time?"


Not at all!

Quote: "I remember playing this game and it was pretty fun. Very simple, but hectic as it goes along...

It seems fairly simple to design, basic graphics, ai that's not too sophisticated - unless one adds their own creativity to the mix. It should be challenging for the developer also since the characters should be animated, there has to be the control of multiple shooting objects - the robots and the player - there has to be movement control and collision detection of some sort..."


Shouldn't be too hard to do... I've already sketched out a few things.

TheComet

Peachy, and the Chaos of the Gems

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 17th Feb 2009 01:47
Quote: "How on earth did you change my sig?"


I got bored and checked the DBCC log. Apparently, a few people tried to login to the website, knowing they had no account set up. The website only records failed logins, and it looks like someone used their TGC info.... The log has been wiped clean and I have a short memory, so you're safe now.

[url="http://dbcc.zimnox.com"][/url]
NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 18th Feb 2009 10:24
Sorry i didn't enter, my internet was down, stupid AOL!
I will enter this one, just got a question for Latch. How do the robots move? Do they simply go in a straight line or do they need some kind of pathfinder?


"There is no charge for awesomeness" - The Kung Fu Panda
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 18th Feb 2009 11:42
@Nano
If the robot doesn't have a shot horizontally, vertically, or diagonally (at 45 degrees) then it moves towards the player or tries to line up with the player - even if it is on the other side of a wall, it will somethimes walk to it's death. However, it can only move in the 8 directions dictated by horz., vert., and diag. Once it has a shot, it will shoot at the player even on the other side of the wall. That doesn't mean you can't improve on their logic and program path finding.

Just a note if no one has played the game, the robots have a single eye that rotates around their head.

Enjoy your day.
NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 20th Feb 2009 17:40
Thanks, I'll start right away.


"There is no charge for awesomeness" - The Kung Fu Panda
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 3rd Mar 2009 19:27
Still planety of time left to enter this one!

Enjoy your day.
That1Smart Guy
17
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 4th Mar 2009 16:43
i think ill enter, but i cant guarantee that ill have enough time to make a good game
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 6th Mar 2009 11:00
That would be great!! This thread seems to be on it's last breath. To everyone new, give the challenges a shot. The current challenge may be a little tricky for newer people, but take a stab at it! If you have questions, people usually try to help each other to work out the kinks and such.

Enjoy your day.
That1Smart Guy
17
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 6th Mar 2009 15:58
how long dose the challenge go? I have spring break week after next so if it goes till then I should have time to make my entry
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 6th Mar 2009 16:54
This one ends on the 15th. It was started a month ago. Each challenge is usually 1 to 2 weeks. I gave this one a month because so few people had been entering lately and this challenge seemed like it needed a little extra time.

Enjoy your day.
That1Smart Guy
17
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 6th Mar 2009 22:01
then i doubt i will have time, but ill try
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Mar 2009 02:49
im getting the internet, booyah!
finally gonna be back properly!
can't believe everyone is getting so lazy, do some coding!

The Universe has been erased by a mod because it was larger
than 240x80 pixels.
That1Smart Guy
17
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 7th Mar 2009 03:04
hello 2 u 2 obese
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Mar 2009 03:11
I like your name smart guy, when people use it they sound sarcastic and insulting

The Universe has been erased by a mod because it was larger
than 240x80 pixels.
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 12th Mar 2009 16:14
Quote: "can't believe everyone is getting so lazy, do some coding!"

Does this mean you'll be entering as well Obese?

There's still a few days left! There have been a lot of posts on the forum from a lot of new people. You guys should try coding for the challenges.

Enjoy your day.
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 13th Mar 2009 04:32
im going to enter the next one
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 16th Mar 2009 16:07
No winners. No entrants. You guys can decide what to do next. I'm done.

Enjoy your day.
That1Smart Guy
17
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 16th Mar 2009 17:19
BEST GAMBLING/CARD GAME!!!!! (mostly since ive already started on one)
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 16th Mar 2009 17:30
Hmmmm that could be interesting. I am in, since I have spring break in a day or two, any other takers?

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Quirkyjim
17
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 16th Mar 2009 22:21
My spring break isn't for another two weeks!

~QJ
That's what they WANT you to think...
That1Smart Guy
17
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 16th Mar 2009 23:22
haha my spring break started 2day, so we doing a poker/cards game then?
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 17th Mar 2009 05:17
idea is cool and all but thats pretty complicated
That1Smart Guy
17
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 17th Mar 2009 22:18
thats the point, the harder the game, the more questions you ask, the more you learn
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 18th Mar 2009 04:50
So when does the challenge end?

Login to post a reply

Server time is: 2026-06-07 05:06:04
Your offset time is: 2026-06-07 05:06:04