Closed Thread Icon

Topic awaiting preservation: October 20lines Javascript Contest - A.I. - Comments (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=23518" title="Pages that link to Topic awaiting preservation: October 20lines Javascript Contest - A.I. - Comments (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: October 20lines Javascript Contest - A.I. - Comments <span class="small">(Page 1 of 1)</span>\

 
BillyRayPreachersSon
Bipolar (III) Inmate

From: London
Insane since: Jul 2004

posted posted 10-02-2004 18:55

This month's theme is: A.I. (Artificial Intelligence )
You can make anything you like, as long as it has some sort of A.I. engine.
It could be a game of noughts-and-crosses, chess, "Attaxx" (classic arcade game), an Eliza-type program, or general A.I program.

The comments belong in this thread, the entries belong in thread October 20lines Javascript Contest - A.I. - Entries

quote:
a code monkey said once:
As usual, the main rule is to make your script in 20 lines of (effective) code.
Comas shouldn't be used to execute several instructions on the same line
See the code sample below to illustrate the basic rules :

code:
<script type="text/javascript">

/* */ document.body.onclick = function()
/* */ {
/* 01 */ val = prompt( 'enter a number' );
/* 02 */ for( i=0; i<10; i++ )
/* */ {
/* 03 */ alert( stupidFunction( val, i ) )
/* */ }
/* */ }

/* */ function stupidFunction( a, b )
/* */ {
/* 04 */ return a>b?a:b; // I said it was a stupid function
/* */ }

</script>



The document.body.onclick = function() does not count as a line as it's not some effective code and the function call could be put in the BODY tag ( or anyother HTML tag ).
The declaration of the stupidFunction() does not count either for the same reasons.
The coma in the line /* 03 */ is ok, since it simply separates the parameters of a function.




(Edited by BillyRayPreachersSon on 10-02-2004 18:55)

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 10-02-2004 21:40

THAT is a good theme.

We'll see if I can give it some time, then.

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 10-02-2004 21:57

difficult

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 10-02-2004 22:50

difficult and good
I just hope the difficulty won't scare the inmates to submit a script. And don't forget we're doing all this just for fun, so if a scripts exceeds 20lines, nobody will bite ... or if we bite, we won't go too hard

Oh, and I can't help laughing when I see : a code monkey said once:

BillyRayPreachersSon
Bipolar (III) Inmate

From: London
Insane since: Jul 2004

posted posted 10-04-2004 01:03
quote:
poi said:
Oh, and I can't help laughing when I see : a code monkey said once:



It is funny . Maybe we should change it to "a code monkey once said" for next month? Or is either more acceptable

Can I submit entries for this month, or does being the judge rule that out? I might be able to bribe myself

Dan

(Edited by BillyRayPreachersSon on 10-04-2004 01:04)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 10-04-2004 01:25

For the record, the "a code monkey said once" phrase came when I copy/pasted the rules from the July 20lines Javascript Contest - Terrain to open the Augut 20lines Javascript Contest - Save the Princess - entries.
So far, nobody ever stated it is forbiden for the organizer of a monthly contest to submit an entry. We're doing this for fun, so the more entries the more the fun.

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 10-09-2004 04:38

Javascript is too slow for Genetic Algorithms.

Time to try something else

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 10-14-2004 11:00

people we should really make something like this with flash.
i mean a flash contest thingie....
but i am afraid there wont be enough people interested.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 11-03-2004 21:47

has anybody seen BillyRayPreachersSon recently ?

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 11-04-2004 11:18

I haven't seen him at all, and despite my apparant absence, I have been hanging around quite a bit . I fancy getting my teeth back into some coding, and these contests really spur me on, so I vote we suspend a decision on the winner, and for the time being poi decide on the new topic!

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 11-04-2004 12:13

Why me ? I'd rather see the inmates casting their personnal vote if BRP doesn't peek a boo within the next 2-3 days we'll follow the usual rule, that is that the winner ( accroding to public votes ) sets the next topic.

My personnal vote :

  1. TwoD
  2. shingebis
  3. BillyRayPreachersSon



TwoD
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Aug 2004

posted posted 11-04-2004 14:13

huh? didn't I post here asking for Brps two days ago?
nevermind, I vote the same as Poi, but I'm a bit biased there of course

/TwoD

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 11-04-2004 14:23

Why you poi? Because you're essentially the creator of the Javascript section of the contest (albeit it originated from InI), but forget that, your suggestion is much better. However, I'd have to vote the same as both of you....

Wrayal

Edit: poi, what are you talking about?

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

(Edited by wrayal on 11-04-2004 16:32)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 11-04-2004 14:51

Two: " huh? didn't I post here asking for Brps two days ago? " It doesn't seem so.
wrayal: [edit] I have no clue what you're talking about too. Seems like you're safe now [/edit]



(Edited by poi on 11-04-2004 16:50)

BillyRayPreachersSon
Bipolar (III) Inmate

From: London
Insane since: Jul 2004

posted posted 11-04-2004 17:23

Sorry for the delay - I left for a short overseas trip on Monday, and I've only just got back...

I agree with Poi's ranking for the entries:

1. TwoD
2. shingebis
3. BillyRayPreachersSon

All good entries (well, I would say that about at least 1 of them ) - so over to TwoD to choose the next topic!

Dan

TwoD
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Aug 2004

posted posted 11-05-2004 07:59

Thank you!
I've got a few topics and I'm trying to decide which one to pick. I'll be back with the next topic ASAP.

/TwoD

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 11-05-2004 12:59

Great! and Congratulations.

Don't forget to create an "entries" and a "comments" thread.

« BackwardsOnwards »

Show Forum Drop Down Menu