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
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 21st Apr 2005 05:43
here's my entry:



its not very good, but it sort of works. Its really awesome when it actually produces real words

Part of solving the problem is actually noticing that the problem is there in the first place

KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 21st Apr 2005 07:20
yes i did Nicholas and i sent you an e-mail on it and ya i know i should put it in my sig but im kinda lazy so just remember

free iPod at-http://www.freeiPods.com/?r=17350673

My Website:

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 21st Apr 2005 08:01 Edited at: 21st Apr 2005 08:07
<Tried to edit, ended up with a double post. See below.>

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 21st Apr 2005 08:06
@IBOL and Neofish (and anyone else),
Yep. several factors play into that name generator:
1) Quantity of seed names, the more the better.
2) Similarity of seed names. Keeping to a same style of name really helps a lot. Examples: Greek mythos. Zodiac signs. Shakesperian characters. Orc names (Greentooth, bonecrusher, etc.).
3) Sample size (the 'maxsize' variable). I jacked this up to 5000. It was a little slow (not like before). I'll post some results below.
4) I've made a few more tweeks and adjustments

These are loosely based on movie titles (and some of the results could be movie titles), like; Starwars, Logan (Logan's Run), Forest (Forest Gump), Gump (same), etc.



"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 21st Apr 2005 08:28
I havent even read the latest challenge but Im assuming its something with name creation.

Dont think Im going to enter in this challenge but just a weird freaky idea to put out there...

If you could somehow find the user's IP and..I dunno their host name, you could do something like...

"Someone in your family has the name..." and put the host name It might be freaky.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 21st Apr 2005 10:33
Here's my final attempt - all I've got time for unfortunately. Was a good challenge. Added to the code:

- weighted probability of common letters
- exclusion rules to disallow certain final letters like x, j etc.
- forces two vowels after the letter q
- attaches some common word beginnings and endings



Best word it came up with so far was 'tolalequack'!

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 21st Apr 2005 12:06
@Ric- lol, that great...but isn't this supposed to be name generation?

"We make the worst games in the universe."

IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 21st Apr 2005 13:23
@ric,
your program actually produced the word
"Debobenate"
i take offense at that.
bob

do not de-bob-enate !

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 21st Apr 2005 13:36 Edited at: 21st Apr 2005 13:37
lol! Oops - yes, that was a word generator. Here's a place name generator, then:



Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 21st Apr 2005 20:32 Edited at: 21st Apr 2005 20:48
Hi all. heres my latest entry. not finished yet but i decided to approach the problem using syllables instead of plain letters. at the moment its not working nicely but its ok

when is the dead line?



Tomu.

ps. my game is now up on my website (as advertised in signature )
check it out, i appreciate any feedback

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 22nd Apr 2005 01:17
Great work Tomu! I like the syllable approach. Good results too.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 22nd Apr 2005 02:44
dead line is today at 4:00 EST i think

not bad names!

"We make the worst games in the universe."

IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 22nd Apr 2005 04:39
yes, this ends today.

tomu, that's a really good entry.
looking thru your code, i noticed that
lastconsonAnt was spelled lastconsonEnt in 2 places (line 80),
but NOT where it's value was assigned...
i changed it, but it didn't seem to make much difference.

over soon...
bob

xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 22nd Apr 2005 04:53 Edited at: 22nd Apr 2005 04:54
Hi all,

Just wanted to say I am really enjoying this thread. I hardly get a chance to surf these forums and just stumbled upon this thread yesterday. I've gone through every single code snippet for each contest and am highly impressed by many of the submissions. I look forward to contests in the future and plan on entering some of them.

Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 22nd Apr 2005 05:52 Edited at: 22nd Apr 2005 05:53
Hi all heres my final entry. only change is the ability to save to a file. i also changed the erroneous variable names (thanks bob)



tomu.

IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 22nd Apr 2005 06:09
all right y'all,
the official deadline is here...
i will begin judging.
please be patient...i need to figure out whether
i'm going to work today...
bob

KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 22nd Apr 2005 07:37
WOW thats awesome TOMU i vote for him
and remember:

free iPod at-http://www.freeiPods.com/?r=17350673

My Website:

IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 22nd Apr 2005 08:50
and the winner is:


because


the runner up is

because


so, winner,
the next challenge is up to you.
what do you want us to try next?

bob

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 22nd Apr 2005 08:52
was mine at least a good try?

"We make the worst games in the universe."

Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 22nd Apr 2005 08:57
yay! thankyou for voting for me

i will think of a new challenge and post it later tonight.

im gonna have to sift through all the old posts to know whats already been set

Tomu.

Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 22nd Apr 2005 09:06
Its up to Tomu to set the challenge but I was wondering if I could suggest two for Tomu to consider?

1. Best blackhole effect.
2. Best effect that produces a galaxy image (I've been trying for ages to write code that will make particles group into spiral galaxies - without much success!)

Philip

Cheer if you like bears! Vote Conservative and save the Country!
P3.2ghz / 1 gig / GeForce FX 5900 128meg / WinXP home
that dude
20
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 22nd Apr 2005 09:26
man those are great suggestions...

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
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 22nd Apr 2005 09:33
peter,
i was going to give you honorable mention,
especially for your configurability,
but then i thought that i'd have to just go on down the line
rating every one's and that seemed extreme.
but yes,i quite liked it.
ric yours too.
and the other guys.

i think we all had an interesting time with this,
and it might some in handy for lots of us.

bob

Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 22nd Apr 2005 09:49 Edited at: 22nd Apr 2005 09:59
Taking the suggestions into consideration here is my proposal for the next challenge:

Space Race:

make a spaceship racing game.

possible concepts:

- gravitational forces from planets and blackholes could interfere with the ships trajectory

- ai could be developed to race against (just an idea)

- maybe powerups or weapons?

- the inverse square law used in my breakout may be useful?

- inverse square law = ( 1 / distance ) * force

- look at asteroids (the game) maybe this concept could be mutated?

entries will be marked on:

1. fun factor - (gameplay)
2. interesting code - (physics , slick coding)
3. graphics - (a moving star system in the background? up to you)
4. creativeness - Impress me

(note: if you really hate space games - then racing anywhere else is fine )

starts : 01:00 am (GMT - london) - 22nd april
ends : 10:00pm (GMT - london) - 29th april

is a week too long? I dont know...?

is this alright or has it already been done?

again. this may need to be confirmed by ric

@phillip:
here is a quick galaxy drawer i just put together. dunno if its any help to you but hey


@everyOne else:

Hints:
- i would use vectors to hold the positions of the ships and affect these by forces dependent on thrust and/or gravity ect.

have fun

Tomu.

xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 22nd Apr 2005 10:02 Edited at: 22nd Apr 2005 10:03
Quote: "make a spaceship racing game."


I'm just a noob here and have never yet participated in a competition, so don't take my word for more than a grain of salt. But I appreciate testing and learning from "tech demos" and other "specific snippet" challenges rather than full-fledged games. This is also one of the guidelines Ric created regarding this competition:

---
Once you have a theme, think of a specific task within that theme which you want entrants to achieve. The task probably won’t be to create a fully fledged game – it should be more like a code snippet, which may be useful in a bigger project. See the table below for examples. Remember that this is something which should be achievable within a few days, and that doesn’t mean working 24 hours a day on it – most of us have work/school/a life too!
---

Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 22nd Apr 2005 10:20 Edited at: 22nd Apr 2005 14:07
Alternative Challenge:

<edit> I decided to go with the original challenge

Tomu

KimoSabi
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location:
Posted: 22nd Apr 2005 11:31
i like them both perhaps ppl could do either or try something new in the challenge but than it would be hard to decide who is the winner i think we should stick with the racing game perhaps ppl can go to the code base and get the 'bones' of a code than add to that??

free iPod at-http://www.freeiPods.com/?r=17350673

My Website:

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Apr 2005 11:37
aw man. Last night I had an idea about breaking the names down into syllables. (mom's an english teacher, her idea) I've been gone all friggin day and didn't get a chance to try it out.

PETA - People for the Eating of Tasty Animals
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 22nd Apr 2005 15:07
phaelax,
i'd still be interesting in seeing what you come up with for that...

space race...

i've been cranking out 20-Liners lately...
maybe i can fit this in...
i've never actually tried physics...

bob

Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 22nd Apr 2005 17:28
when is the due date, i am so tied up atm.
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 22nd Apr 2005 18:25
can someone please show me how to use DBP's vectors?

Quote: "This command will create a VECTOR3 data item. Unlike the datatypes you are used to, these datatypes are
stored internally and referenced by an index value. The VECTOR3 datatype contains three float values
representing X, Y and Z. This datatype is typically used to store 3D world space coordinates.

SYNTAX
Return Integer=MAKE VECTOR3(Vector)"


so yeah, that tells you a little about it
but not how to use it

my understanding of a vector is
'a direction with a force/speed'

so i could understand the theoretical vector
3,4,5
which should move you 3 in the X direction, 4 in the Y, and 5 in the Z.

but how do you use DBP vectors to do this?

bob

http://astrumgames.com
completed games: Astrum Erus, Centipoid, WarpFlight, Higher Ground
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Apr 2005 18:37


Basically...

Now THIS challenge ROCKS

I have an idea already - It involves that screensaver/GraviKill game I made a while back

My Website:
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 22nd Apr 2005 18:54
this is NOT an entry, but is something using that
inverse square law...a bunch of spheres 'accrete'...
gather together due to their own gravitation.



@nicholas,
that doesn't help.
do you use the null, or if it really is null, why bother with it?
what do you do with the vector after you 'set' it?

i'll need to see some simple example code. (i'm not asking you
specifically nicholas...it's just what i'll need)

think about some aspect of coding that you know nothing about,
and what you would need to learn about it.

thanks,
bob

http://astrumgames.com
completed games: Astrum Erus, Centipoid, WarpFlight, Higher Ground
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 22nd Apr 2005 19:32
@IBOL

I can do better than explain how that command works. I can in fact give you a complete incredibly detailed tutorial as to how all the vector commands in DBPro work!! Hurrah!

http://www.kentaree-studios.com/Tutorials/Vectors/

Thats my famous vector tutorial. I'm quite proud of it, so I am.

Philip

Cheer if you like bears! Vote Conservative and save the Country!
P3.2ghz / 1 gig / GeForce FX 5900 128meg / WinXP home
Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 22nd Apr 2005 19:34
damn I am blind, i see it end on the 29th, sorry dudes !
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Apr 2005 20:31
@IBOL:
Seriously - use Philips Vector tutorial - it helped me

When I said "null" thats just a name i use for a variable I dont need. I dont think "NULL" actually exists in DBP Does it?

I wanna go home and work on this

My Website:
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 22nd Apr 2005 22:38
Odd. Theres something wrong with the vector tutorial at Kentaree's website. It doesn't seem to be showing all the pages and the left and right arrows are missing.

Is Kentaree still in the forums?

Philip

Cheer if you like bears! Vote Conservative and save the Country!
P3.2ghz / 1 gig / GeForce FX 5900 128meg / WinXP home
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Apr 2005 23:30
looks fine to me

My Website:
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 23rd Apr 2005 00:25
BTW philip in your last tutorial it kinda leaves you hanging
Quote: "In the next section we'll build on the ideas explained above to produce a 3D space radar of the sort seen in games like Elite and the Starwraith series.
"



"We make the worst games in the universe."

Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 23rd Apr 2005 00:49 Edited at: 23rd Apr 2005 01:06
hi all, glad to see your exploring the wonders of vectors.

what i usually do i allways make a user defined type:



just to hold vectors without having to make a vector3 until i need to use their calculations.

things to research about vectors include:

- vector dot products

- transformation matrices to rotate , scale , and translate vectors (can use homogenous coordinates)

- vector cross prducts.

here is a code snippet i made which you can use to rotate a vector

use left and right to control the dot



all these things can help find vectors which are really useful.

maths rules

ps. i like your sphere gravitation thing bob. very cool

Tomu.

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Apr 2005 01:13
Quote: "When I said "null" thats just a name i use for a variable I dont need. I dont think "NULL" actually exists in DBP Does it?
"

nope it doesn't, but i use null as well.

I got a great idea, but its gonna look so stupid without any media files.

PETA - People for the Eating of Tasty Animals
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 23rd Apr 2005 05:03
i am going thru philip's tutorial now...
thanks,
bob

http://astrumgames.com
completed games: Astrum Erus, Centipoid, Hero Of Garaven, WarpFlight, Higher Ground , Circular Breakout
Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 23rd Apr 2005 05:26
go for it bob.

i usually use "notneeded = makevector3(vectorNum)"

cos its such a pointless thing to ask for a return value from a vector creation! oh and you also have to do it when deleting them:

notneeded = delete vector3(vectorNum)

Tomu.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 23rd Apr 2005 05:50
@Tomu: Congratulations on winning the last challenge - nice coding. Your new challenge sounds fun - I love racing games! And it's great to see people learning about vectors in order to help them with this challenge.

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 23rd Apr 2005 08:34 Edited at: 23rd Apr 2005 08:35
Congratulations Tomu!!

Sounds like a tough-fun challenge. I don't know if I have enough time to enter. I'm going to give it a shot though.

"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: 23rd Apr 2005 09:19 Edited at: 23rd Apr 2005 11:08
Ok, here is my work so far..

Basically, there is a randomly generate galaxy with planets numbered 1 to 5. Each planet has a checkpoint on the opposite side of it to the next planet (this means you can often get nice slingshots).

Currently, there is only 1 player and you just do laps.

I;ve spent only 10 mins tweaking the gravity and stuff, but its pretty good fun so far.



Things to do:
Collisions with planets - I'm thinking its puts you back at the last check point.
Lap times. How long does it take you to do a lap?
Multiplayer - sharing the keyboard, you race to the next checkpoint. Each checkpoint gives you a point. I dont think racing in the traditional sense would work so well with this, but opinions would be appreciated.
MAYBE moving planets with orbiting checkpoints - although this would negate the point of the slingshot checkpoint..

Anywho - Lemme know what you think I dont think its bad for 90mins work (with a 4 hour pub break in the middle )

My Website:
Tomu
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 23rd Apr 2005 12:49 Edited at: 23rd Apr 2005 12:49
very nice start there nicholas

good idea with the slingshot concept

Quote: "function rgba(r as integer,g as integer,b as integer,a as integer)
colour as dword
colour = (b)+(g*256)+(r*65536)+(a*16777216)
endfunction colour"


lol dont trust the db command either?

alternative method used in other languages is:




this is used more often as it uses bit shifting and is pretty much exactly what u did but more "formal"

nice to see good use of vectors

Tomu.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Apr 2005 20:49
Hehe.. Yeah, I use that function as it includes alpha. I might move onto your one - might be more efficient, who knows!

My Website:
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 25th Apr 2005 01:22
Its all gone quiet :-(

My Website:
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 25th Apr 2005 01:29
Yes it is! I know I'm busy right now, and I'm having trouble coming up with a race game idea. I might throw something quick together - just to give you some competition Nicholas.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II

Login to post a reply

Server time is: 2024-11-22 10:55:07
Your offset time is: 2024-11-22 10:55:07