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 / - DBPro Coding Challenges -

Author
Message
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 31st May 2005 16:41
Sorry. Ended up a very busy weekend for me. I think a bit of a hiatus is in order. Even with the few entries posted, I think there is a bit of burn-out going on here. So I'm going to suggest a 1 week hiatus, also people can post more entries. I would also suggest that the following challenge be for 2 weeks as well. Or, if people want a judgement now, then I'll be happy to post the winner. Thoughts?

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 1st Jun 2005 05:45
Been away for four days - thought I'd missed out on this one, but as a break has been suggested, I'll treat that as an extension. Can we have a new official deadline, then?

I'd also suggest we set a two weeker for the next challenge, to see if works better.

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 1st Jun 2005 09:53
Deadline extended then: Sunday, June 5th (all night, as winners will be posted after midnight Pacific time, or about 9 a.m. Monday GMT).

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 2nd Jun 2005 09:35
Good good. Hey IBOL - congratulations on winning the 20 liner comp - especially as it was based on the work you did for the breakout challenge here! Next challenge - which expansion pack are you going to claim?

IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 2nd Jun 2005 12:57
yeah, hey, thanks, ric.
i owe this whole thread thanks since i wouldn't have done it without it(which pronoun is which?)
i don't even know which expansion packs are available...where to look?
bob

http://astrumgames.com
completed games: Astrum Erus, Centipoid, Hero Of Garaven, WarpFlight, Higher Ground , Circular Breakout
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 2nd Jun 2005 14:05
Yes! Congratulations Bob!

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 4th Jun 2005 03:23 Edited at: 6th Jun 2005 09:05
To quote myself:

Quote: "I'm going to write one - it will be really rubbish most likely"


and to come good on my promise, here is my really rubbish parser:



Ok, it's primitive, but for someone who didn't even know what a parser was, I feel moderately educated having done that.

I may, or may not, develop it into something partially useful.

<edit> Should mention, it was Rii's code that I studied, which would explain the similarities.

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 5th Jun 2005 04:04
I did write a very simple one a while ago but I decided not to continue it in DBP (move to C, where I can have dynamic memory )

Banjoman says:
I love Richard Davey
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Jun 2005 08:52
i been out of town for my little cousin's graduation. I thought this was over so I stopped.

PETA - People for the Eating of Tasty Animals
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 6th Jun 2005 09:22
Well, I guess it is over now. Let judging commence!

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 6th Jun 2005 17:48
And the winner is....



runner up



Next challenge...

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
robo cat
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: In a cat litter tray, near you...
Posted: 6th Jun 2005 17:59
Thanks for choosing me to win!

I'll try to think of an easy challenge so that people without much experience or time can enter so there'll be a bit more entries.

Simple... yet fun!
robo cat
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: In a cat litter tray, near you...
Posted: 6th Jun 2005 18:19
Heres the challenge...

A simple game based around touch typing. It could be anything from drag racing to space invaders. It won't be judged on the number of words it has for typing - as long as it has more than 20 it should be ok. It'll be judged based on the origility and fun of the game aswell as how much it relies on touch typing ability. Probably should last about a week? So entries in for next Monday.

Like the challenge? if not then I could change it.

Simple... yet fun!
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 6th Jun 2005 18:52 Edited at: 6th Jun 2005 18:53
Interesting! So, basically, any game where the speed of the keyboard input is critical? ie. could it be like one of those games where you have to hammer away at two keys in succession to make your player move faster - or do they have to be words?

Either way, I agree that this one looks resonably accessable for beginners, and one week really should do it.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 6th Jun 2005 19:47
I thought we were having a break for a week or two? I think the reason this thread has lost a little attention is due to the Puzzle compo..

My Website:
robo cat
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: In a cat litter tray, near you...
Posted: 6th Jun 2005 19:51
Quote: "hammer away at two keys in succession"


It has to have relevance to touch typing so if the two keys remained constant - such as a game like track and field - then it wouldn't be touch typing. However, you could do it by typing words or even just having random single letters that you have to hammer in succession meaning you actually have to find the key each time.

Quote: "I thought we were having a break for a week or two?"


Might be best to put the length up to 2 weeks then, if Ric agrees?

Simple... yet fun!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Jun 2005 13:49
runner up? i dont even recall doing anything.

PETA - People for the Eating of Tasty Animals
robo cat
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: In a cat litter tray, near you...
Posted: 7th Jun 2005 17:32
You're just that talented Phaelax. Plus it would've been lame if I'd won with the only entry, so there had to be a runner up.

Simple... yet fun!
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 8th Jun 2005 00:20 Edited at: 8th Jun 2005 00:20
Quote: "runner up? i dont even recall doing anything."

Someone's using your user name then
From post #1089



"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Jun 2005 05:44
Quote: "From post #1089"


I must be blind - how on earth did you work that out? PLEASE tell me you didn't count...

My Website:
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 8th Jun 2005 05:51 Edited at: 8th Jun 2005 05:51
There are so many posts per page. Simple multiplication I would think and then count down on the page containing a range with that number.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 8th Jun 2005 06:12
Quote: "Might be best to put the length up to 2 weeks then, if Ric agrees?"


That's fine by me - were saying Monday 20th June then, yes? No excuses then, people - two whole weeks for a touch typing game should be oodles of time!

Here: - I'll start the ball rolling ......



I scored 10

To do:

- make it better.

Clearly I'm going to have to be a bit more clever to get the timer to continue to refresh while the computer waits for the input command. I guess I'll have to use inkey$ and check every letter instead of using input.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 8th Jun 2005 06:18
Just scored 11. I'm well imprassed with my typong skulls now.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Jun 2005 07:27
Lol.. I haven't tried it yet, but you could monitor the scancodes and when something is pressed, check the keystate for that key?! Just an idea.. I'm not gonna be able to do much more in the way of these challenges for a while - SO much else to do. My work has recently changed offices and I dont get home now till gone 7pm.

Ric - hows the collation of the challenges coming along for the Challenge Database?

My Website:
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 8th Jun 2005 08:49
Oops - yes, forgot about that - will get on it.

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 8th Jun 2005 13:31
Quote: "I must be blind - how on earth did you work that out? PLEASE tell me you didn't count..."

It was my incredible ability to subtract.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Jimmy
21
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 8th Jun 2005 13:57
I've gots an idea for this one

that dude
20
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 9th Jun 2005 07:43
ha! i scored 14! w00t! im actually going to enter this contest!

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 9th Jun 2005 08:53
What's that Jimmy?

I spent a bit of time on mine today - and realised that to have a flexible word bank, it would be useful to be able to copy and paste text files from word documents etc. - and hence the need for a parser ..... low and behold, my parser from the last challenge, with a few modifications, actually did have a use after all! It now processes words from any string of imported text - getting rid of punctuation marks and organising by length of word.

Will post update tomorrow - to tired to transfer from my laptop now!

Jimmy
21
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 9th Jun 2005 09:29
Something awesome using the latest in cowboy primitive technology.

Observe...

Attachments

Login to view attachments
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 9th Jun 2005 10:46
Woot! Jimmy!

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 11th Jun 2005 11:44
I scored a 14 on Ric's game

PETA - People for the Eating of Tasty Animals
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 11th Jun 2005 21:29
You're a superdupertyper.

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 12th Jun 2005 07:51
15!

i have a good idea for a game, but not sure if i got time. yea im off for the next 2 days, but i have to leave town for a funeral.

PETA - People for the Eating of Tasty Animals
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 12th Jun 2005 11:43
Starting my game. Here's a sample. Backspace doesn't seem to work so well. Just hit enter and start again if you make a mistake. Any suggestions on how to fix that are more than welcome.
Enjoy.



"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 13th Jun 2005 04:38
Is it just me, or do you need to enter the sentences twice before they are accepted?

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 13th Jun 2005 06:29 Edited at: 13th Jun 2005 07:21
Quote: "Is it just me, or do you need to enter the sentences twice before they are accepted?"

I've been able to enter sentences once. It's just extrememly picky, and if you use backspace - it won't work at all. Also, no need for caps, but it won't matter.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 13th Jun 2005 17:16 Edited at: 13th Jun 2005 17:20
here's my entry:


you have 5 'guns' that fire at oncoming enemies.
guns are triggered by pressing the key corresponding to the
letter on the gun you want to fire.

i had a game like this for the atari 800XL computer...
it was called 'typo attack'

bob

http://astrumgames.com
completed games: Astrum Erus, Centipoid, Hero Of Garaven, WarpFlight, Higher Ground , Circular Breakout

Attachments

Login to view attachments
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 14th Jun 2005 01:19
Seems like the rocks don't always die. Is that supposed to happen?

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 14th Jun 2005 02:13
yes, they have 'life'... you have to hit them 2-5 times each.

http://astrumgames.com
completed games: Astrum Erus, Centipoid, Hero Of Garaven, WarpFlight, Higher Ground , Circular Breakout
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 14th Jun 2005 08:36
Ric - any news on the challenge collection?

I understand if you've not had time.. Tonight is the first 1-2 hours I have spent with DBP in about 3-4 weeks! And now sleep is getting in the way.. It never used to be like this.. not before employment.. Damned society requiring money for everything..

My Website:
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 14th Jun 2005 09:37
Still haven't got round to it yet - but bear with me, I will get it done asap.

Supertyper version 2:



-Sorted out the timer - now it doesn't hang while the computer waits for input. Solved by using inkey$

-Incorporated a text parser, so you can paste any chunk of text in a single data statement, and it will split it up into words, take out the punctuation marks, and create a usable wordbank.

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 14th Jun 2005 09:39
Quote: "disallowedcharacter$(checkdisallowedcharacters)=right$(left$(disallowedcharacterlist$,checkdisallowedcharacters),1)"

ouch that's a long line

Banjoman says:
I love Richard Davey
Jedi Lord
20
Years of Service
User Offline
Joined: 11th Jun 2004
Location: Jedi Temple
Posted: 14th Jun 2005 09:39
ARRRGGGHHHHHH I HATE SPYBOXES AND VIRUS RAAAGGGHHHH!!!
I can't get in the "DBPro Coding Challenges." That mean I quit. I have to wait till my computer fix.

1THz, 20GB RAM, NVidia Quadro FX3000/20GB, 2TB HD, XP Pro(MINI SUPER COMPUTER) I am an Orge, wow like I care.
qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 14th Jun 2005 15:16
unfortunately i stumbled across this thread at the start of a 2 week touch typing contest

Check out the DB Freebie Archive: http://lysergium.net/dbfree/ thanks to DARKGuy
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 15th Jun 2005 02:14
What's unfortunate about that? You win a challenge, you get to choose the next one.

qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 15th Jun 2005 11:15 Edited at: 15th Jun 2005 11:15
i'm eager to see the next competition. just not interested in this one

Check out the DB Freebie Archive: http://lysergium.net/dbfree/ thanks to DARKGuy
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 16th Jun 2005 10:52
HI GUYS!!!,

I haven't been on forever cause first I got WoW (which is awesome) than my computer crashed for about 3 weeks but I but a new Alienware!!! and it is AWESOME!!! and I do have a few question since im starting on darkbasic again.

-Is it possible to make a program to start up everytime at startup

-Is it possible to make a program to look for updates on the internet(auto and manual)

-Is it possible to make a program that will run in the "background" of everything

-Is it possible to make it so there isn't a little bar at the bottom of the screen(when not on fullscreen) like an example that pet thing that is on your desktop it's there but it's not like you can minimize it and whatnot.

Thx I hope you guys are glad im back and i'll be getting right to work !!!!

My Website:

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 16th Jun 2005 18:19
The first one is easy - just wang a shortcut to it in the Startup folder in your start menu, OR go to the registry and you can make links in there in the Run folder (Something like: HKEY_LOCAL > Software > Microsoft > Current Version > Windows > Run)

Updates shouldn't be too hard.. You could either do:
* FTP Login and download some kinda text file with the current versions and then use FTP to download the files as required
* use PHP and urlmon.dll to download a PHP file that contains all the versions. You can then make it use PHP to download a file (using the header() command and an arguement like download.php?file=willy.exe)

Background running.. Hmmm.. I would do this using Sync off (ie the one where it updates automatically). If you manually sync, the program seems to always want to use 100% CPU, even if you are waiting for a key or limiting to 1 fps. The automatic Sync only uses CPU that is required so if you have a background process that is polling something every second or every 5 seconds - its gonna use bugger all CPU.

Now this is something I would LOVE to know - I made a screensaver that fully integrates with windows (thats to Jessticular for his help with DLL's) but the problem is that when I preview it makes a little DBP entry in the task bar at the bottom. I would love to know how to get rid of that. Would also be nice to know how to put processes into the tooltray.

Hope this is of some help...

BTW: Welcome back

My Website:
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 17th Jun 2005 08:01
wow thank you very much yes i would like to know those to lol i think i might switch to C++ but i can still do some DarkBasic but being as im only 15 and i can't get any1 to teach it to me does any1 know of where i can get a good book on C++ and a program(no Dev C++ because that is not the "universally used" program with the same commands as the Big Guys if you know what im saying... i want to learn it right the first time,

thx guys

My Website:

Login to post a reply

Server time is: 2024-11-23 02:19:16
Your offset time is: 2024-11-23 02:19:16