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
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Apr 2005 10:19
Cool Tomu, but a few things. The double box thing for the paddle confused me. Also, the ball's reflection after hitting the paddle seems a bit buggy.

I'm reworking the graphics part of mine. Ditching the 2D cause its just to dang slow.

PETA - People for the Eating of Tasty Animals
Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 18th Apr 2005 12:24
Hi all Again...

Tomu Here!

heres my final version. i decided to do a bit more

the controls are mouse to move pad

space to reset ball

there are an infinite number of levels and the difficulty increases

watch the walls shrink



have fun

[URL="blindsight.dbspot.com"][/URL]
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Apr 2005 12:44
Grrrrr, this is making me mad. Just about done, and I get a stupid error. The below code works just fine, if I remove the "hide object" commands. No idea why it keeps saying object number illegal.



ok screw this. I'm done playing around with the general bugginess of all this crap.



PETA - People for the Eating of Tasty Animals
Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 18th Apr 2005 13:22
sorry i cant edit any of my posts cos of this stupid thing about new users and post checking. iv bin a member for a year!

Anyway i got the last code wrong here is the Final Final FINAL program

again its nothing graphically taxing or original but its quite addictive

I hope this posts passes through post checking before the deadline.



Have fun and i challenge any of you to get to level 10 or top the high scores

Tomu

[URL="blindsight.dbspot.com"][/URL]
Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 18th Apr 2005 15:47
man this is a sweet thread, how could I have missed out on all of this ??

So... when is the next challenge ?

I would like to see eye candy Trails, particles, blur etc...

Could the organiser put this in the next challenge whatever it is ?
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Apr 2005 15:59 Edited at: 18th Apr 2005 16:03
Whoever wins this one (ends tonight), picks the next challenge.
Since I'm the only one who didn't use rectangles, I vote mine as best in physics. :-d Graphics.....well, I uhhh,..... I've got color?

PETA - People for the Eating of Tasty Animals
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 18th Apr 2005 18:07
@Phaelax:
I find the best way to get around the object errors like that is just to put "if object exist(n) then.." in front of the line throwing the error. Also, if you use a variable in the hide obejct line, make sure its the right one I dont know how many hours of my life I've wasted by using the wrong variable!! EG:


I have litterally had no time to do mine. I got home last night at midnight and had to be up for work at 7am and my computer was not even setup (took it away for the weekend.. Not on a date or anything.. ).
Its a shame - this challange was fun because it was so simple, it did give room to try new things but was clear cut enough to keep all entries within the same theme.

I would like a challenge of something like blur, etc as thats quite similar to how this started. It all comes back to the problem of time though.. :-(

Maybe the next one could be something like use of split screen camera's? Just a thought.. Hehe..

My Website:
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 18th Apr 2005 19:33 Edited at: 18th Apr 2005 19:39
Wow! Lot's of great entries again!! This is tough one to judge again, but here it goes:

Scoring Reminder:
1st) Playability and addictiveness (fun to play)
2nd) Quality and creativity
3rd) Addins and extras

Ric - I wish you had more time too. That's a great breakout varient you've started there and I'd like to see what it develops into. As always, cools graphics!

Nicholas - Same comments as Ric. A very different perspective on the breakout concept. Like the graphics as well.

Phaelax - Great work on the angles there. It makes the game a lot more difficult especially with the restricted paddle movement. Lot's of potential!

Tomu - Welcome. Glad to have you join the comp. Excelent breakout game! Like the ball-trail and the colors, as well as the overall brick & board design. Very cool. Good physics as well. It was neat to see the ball arc over the bricks instead of crashing against the top wall.

Coding Fodder - When it comes to breakout games - I love getting specials! Thanks for adding those in. Great work on getting the timing and the physics as well - and I regret that you didn't have more time.

IBOL - A very different approach to breakout (well, games in general). You don't 'lose' per se, but you hang in there until you puke your guts out - then it's really game over. Honestly - great graphics, fun to play, and like the levels.

And the winner is:


Runner up is:


Erick: welcome as well. Looking forward to seeing you enter a few of these.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 18th Apr 2005 23:03
congratz IBOL make the next challenge a good one i think ppl i getting a little off track though this is suppost to be on mind drilling for programs not graphics but i suppose thats ok

My Website:

Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 19th Apr 2005 00:03
Quote: "i think ppl i getting a little off track though this is suppost to be on mind drilling for programs not graphics but i suppose thats ok"

KimoSabi:
Graphics are also a way of displaying programming skill, especially with no media. even graphics has maths .

Ibol:
Congrats! Hope you set a good challenge. have we had any AI challenges yet?

RiiDii:
Good Challenge Set. look forward to competing with you on the next challenge

Tomu.

Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 19th Apr 2005 00:37
awsome, so i am in time for the next one ? shweeeeet
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 19th Apr 2005 01:24
@Tomu: Yup, the one before last was an "AI" type one. There were some pretty good entries in that.

I have had some great idea's on how to further my entries in that.. Gonna make a proper online game which has micromanagement in it

Anywho = bring on the next challenge.. Its great to see this thread growing. I wonder if any kind Mods would sticky this as its turning into quite a popular thread!

My Website:
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 19th Apr 2005 04:21
woo hoo!
ok,
well guys, i've got to get to the bank to deposit money
to cover the check i had to write to the IRS.
then i will pick a challenge.
bob

Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 19th Apr 2005 04:38
ok, it is sticky

Now give me the next challenge !
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 19th Apr 2005 04:43 Edited at: 19th Apr 2005 04:44
Erick G ... a moderator?

I am sure I should recognise a moderators name. It would be very handy to have a 'formely known as ..' feature on the forum.

So come on Erick, who are you and when did you change your name?

Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 19th Apr 2005 04:46
I changed my name from Erick to Erick G

Basically became a mod to help out on the DarkSDK forum. So yeah, I am a mod newbie of sorts.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Apr 2005 04:57 Edited at: 19th Apr 2005 05:06
ah crap, lost again. I knew I should just made some internal media and submitted my arkanoid clone.

doh, my avatar didn't work out like I wanted.

PETA - People for the Eating of Tasty Animals
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 19th Apr 2005 05:49 Edited at: 19th Apr 2005 06:16
New Challenge:

make a "Random Name Generator"

write some code that generates names for games...things like
alien creatures, futuristic names of people, planets, or
ancient / mythical countries & monsters.

judging will be based on

1. the number of names that i consider 'believable' out of a
generation of 100 from your program. "xqyzflagglebbb" will not count! also, duplicates or near duplicates (1 letter off) will not count.

2. the size of your code. smaller is better.
this is basically to eliminate 5 pages of DATA statements,
so that you come up with some algorithms...some DATA is of course OK.
(don't be too afraid of size...)

3. anything that sets your code apart...
file saving? sorting? can your program tell a story with its new words?! does it accept user input?
(#3 is not necessary...)

have at it...
i say 4 days unless someone begs for more time.
challenge set 4/18/05 (american) 3:48pm (EST)
challenge ends 4/21/05 4:00 pm (EST)

bob

Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 19th Apr 2005 06:01 Edited at: 19th Apr 2005 06:03
Interesting Challenge bob!

I will see what can be done.

Quote: "make a "Random Name Generator""


Quote: "can your program tell a story with its new words?!"


so is it a name generator or a story generator?

or are both valid?

anyway i think this could be a great challenge with added variery.

Tomu

IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 19th Apr 2005 06:14
thanks tomu, i hope so.

it is not meant to be a story generator...that was mostly a joke,
but someone always comes up with something incredible...

i think this might need to be approved by ric...

bob

Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 19th Apr 2005 07:26
Heres a very primitive function that generates lots of not totally unreasonable names for alien star systems.

I used this in an earlier version of Entropy.



Can I schedule a possible future challenge? How about: who can create the best black hole effect?

Philip

Cheer if you like bears! Vote Conservative and save the Country!
P3.2ghz / 1 gig / GeForce FX 5900 128meg / WinXP home
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 19th Apr 2005 07:40 Edited at: 19th Apr 2005 07:41
@ IBOL: This is a really interesting challenge - and not like any others so far. 4 days seems right for this. Congrats on winning the breakout challenge.

@Philip: Nice code, and it gives people an idea of what this challenge is about. By the way, all you have to do to be a challenge setter is win a challenge!

@Eric: Woohoo - we're stickied! Thanks!

Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 19th Apr 2005 10:19
Took me a bit to find the thread now that it went platinum.
I like this challenge Ibol. lots of opportunity here. Oh and three cheers all the way around on the last challenge fun stuff gentlemen.

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 19th Apr 2005 11:05
@Coding Fodder - ME TO lol this is AWESOME i think this is like the greatest accomplishiment on starting something big lol

@IBOL - WOW great idea i would have never thought of that lol but AWESOME

@Ric - I think u'll be good at this one for some odd reason lol

@Eric - THX MAN i know most of the mods to and i havn't heard of u b4 but thats COOL

@Philip - WOW that is cool gave me like 10000000 ideas all at once so i forgot 9999999 of them haha

@Nicholas - I take it you have been busy recently lol but i have a question, when can you start on that menu for my Aquarium game?

@Everyone - plz dont forget iPod iPod iPod lol (sry if im bothering ppl but i rly rly want this, you can use my referal link at http://www.freeiPods.com/?r=17350673 and i swear to you that it rly does work i saw it on the news and a freind of mine got one) also i am SOOOO happy cause i may be getting AN ALIENWARE LABTOP which is totally awesome but unfortunetly i need money but i will be sending a CD that i put together with screensavers and games in it to The Game Creators and c what they think(i made it fancy with javascript cause i didn't feel like making a whole menu system all coded )

My Website:

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Apr 2005 17:11
A sentence generator would be easier I think if I could use a dictionary list.

PETA - People for the Eating of Tasty Animals
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 19th Apr 2005 18:22
This certainly is an intruiging challenge and just the kinda thing I think this thread was origionally made for!

Now.. name generator.. Hmm...

@Kimosabi: I have been Ãœber busy recently. I was away for the weekend and last night I litterally collapsed in bed after dinner (about 9pm). I didn't intend to - I think I was more tired than I would let myself believe

I'll HOPEFULLY have time and energy tonight for some DBP programming as I miss it! I have so many idea's but not enough time in a day :-(

My Website:
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Apr 2005 18:30
wow, this is harder than I thought. My results, after viewing many, look more asian like. Occationally, I'll get something someone says they saw in WoW.



PETA - People for the Eating of Tasty Animals
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 19th Apr 2005 19:27
Hey that looks like some REALLY good code Phaelax.. Can you post some results? I'm intruiged as to what that produces..

My Website:
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 20th Apr 2005 02:11 Edited at: 20th Apr 2005 02:16
i made a short program...that produces the following (as you can see the 3 letter length ones aren't as impressive... )

are they ok? or do i need to start from scratch?

[edit] DOH! just realized i exited out of DB without saving there, as they say, went that idea...

"We make the worst games in the universe."

IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 20th Apr 2005 03:35
hey all. good to see you working away...

here are some results that i got from phaelax's code:

(i changes the print statements to 'write string' and made a file)

@peter_:
i think your results are very appropriate.
too bad you lost the code...

judge your own results...
how many of the names your program generates would you be willing
to use in a game of your own?

bob

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th Apr 2005 03:56
Quote: "how many of the names your program generates would you be willing
to use in a game of your own?"

about 1 outa 20
mine needs some work still.

Nice Peter, too bad you lost the code already.

PETA - People for the Eating of Tasty Animals
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 20th Apr 2005 08:05
@Kimosabi:
I spent an hour or so playing about in DBP with your menu's..

How are these

They're drop down, but I have an idea about how these could be cool, but it'd be best to discuss by email rather than hijacking this thread.

As for this challenge - I would like to enter, but I'm trying to think of what makes a name! Hehe..

My Website:
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 20th Apr 2005 08:42 Edited at: 16th Nov 2005 03:48
Good challenge IBOL. Here's my entry.It's large, it's slow, it's random, it's different.

Enter some names so the code can get feel for the style of names that you want. Then it takes a while to scan the names (set the 'maxsize' variable to a lower number to speed things up).

Then watch the code mostly ignore all the names you just entered and come up with names all it's own.




Open MMORPG: It's your game!

Attachments

Login to view attachments
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 20th Apr 2005 08:59
@Rii: Woah - a program that learns! That's cool!

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 20th Apr 2005 09:01 Edited at: 20th Apr 2005 18:08
Tell ya what RiiDii, that aint half bad!

My Website:
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 20th Apr 2005 09:53
OK - here's my first attempt:



Very basic so far, but it has come up with some interesting words. Allows you to save them to a file, too.

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th Apr 2005 11:25
I tried r2d2's, but I got sick of waiting after 2-3 minutes.

PETA - People for the Eating of Tasty Animals
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 20th Apr 2005 12:28
guys,
i know it doesn't make any sense immediately,
but if you use
sync on
sync rate 0
even these programs will run faster.

riidii's code, sync'd:


bob

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 20th Apr 2005 13:05
Okay Bob! What else did you do? It's not just "faster." That runs a hail of a lot faster! Well, that sure is some useful info. Thanks.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
suspender
20
Years of Service
User Offline
Joined: 12th Oct 2004
Location:
Posted: 20th Apr 2005 13:14 Edited at: 20th Apr 2005 13:19
Hi im new to this section

bob very good observation about sync'ing

and ric i enjoy your names the most so far you should actually consider preventing the awkward conosant combinations such as starting with an "X" and also non exsistant sounds like NH etc...hopefully this helps

r2d2 or reedee as i enojoy reading it, your names can be too long but by far the most ingenious

dino strong$1!
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 20th Apr 2005 15:17 Edited at: 20th Apr 2005 15:37
Hi Suspender, and welcome to the famous coding challenges!
Thanks for the feedback - really appreciate it (and I sometimes read it as ridee or reedee too).

So, here's the updates.
-The resulting names are more in line with the average name length that is entered (slightly longer on average). Want short names? Keep the names in the list short.
-Now there are Save and Load options to Save or Load your seed list.
-The seed list is now set at 50 since saving is an option - the more names in the seed, the better.
-You can jump into the code and change the seed list size (maxnames) variable.
-Much, much, much, much, much, much faster thanks to IBOL
-Due to the increase in speed, I was able to increase the sequence list a lot, which helps improve the statistics behind the code.
-You can jump into the code and change the sequence list size (maxsize). Oh, that was there before too.
-Very slight improve on output names, should read a little easier.



Edit: Code edited above. Cannot edit attached source code.

"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: 20th Apr 2005 18:30
rii,
i got some really good results from that code...
i'd say ~50% ! i used zodiac signs as seeds.
excellent.
bob

IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 20th Apr 2005 19:18 Edited at: 20th Apr 2005 19:20
here's my (non-)entry.

it switches between vowels and consonants.
it prioritizes consonants into 6 groups,
and has weighted choice by how common they should be.



it gives results like this:


KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 20th Apr 2005 21:57
wow thats kewl i kinda used Ric's code(sry ric)but modified it a bunch so i makes names that make sense and you can now save only the words you want to a file



and remember free iPod http://www.freeiPods.com/?r=17350673

My Website:

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 20th Apr 2005 22:54
Kimo - why dont you just put the iPod thing in your sig Hehe.. It'd save you typing it all the time!

Have you had a chance to look at the menu thing?

My Website:
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 21st Apr 2005 01:07
I'm going to recode my program...took me 15 mins...shouldn't be too hard

"We make the worst games in the universe."

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 21st Apr 2005 01:55 Edited at: 21st Apr 2005 02:46
Here's something like my last program...(i had to do it from memory)

100 names from it


[edit] actually..looking at the other peoples entries...i may enter this one (with file saving and stuff)

there are actually a good amount of names i wouldn't mind using in this one...

BTW my source code is 77 lines with plenty of extra space (but i haven't put in much user interface yet)

"We make the worst games in the universe."

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Apr 2005 02:31
Rewrote mine a bit, made it simpler and I got better results. (you can at least pronounce these)



PETA - People for the Eating of Tasty Animals
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 21st Apr 2005 03:40 Edited at: 21st Apr 2005 03:49
Ok here's my entry so far (probably done)

Nobody steal my way of making names


or i'll name you something like Eugene

here are 20, 5 letter names all starting with "S"


the actual name producing code is only 63 lines (the functions "name", "firstletter", "midletter", and "lastletter")...the rest is the user interface

--Peter

"We make the worst games in the universe."

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 21st Apr 2005 05:23 Edited at: 21st Apr 2005 05:39
800th post! MUA ha

RiiDii: I used Star Wars names with the first one, about 5, and got about 5 good results. THen the second I used names of my friends (10) and got 1 good result

"OC192...that's like the speed of light"

Login to post a reply

Server time is: 2024-11-22 10:02:43
Your offset time is: 2024-11-22 10:02:43