 |
|
BillyRayPreachersSon
Bipolar (III) InmateFrom: London Insane since: Jul 2004
|
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) InmateFrom: USA Insane since: May 2004
|
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 ScientistFrom: Omicron Persei 8 Insane since: Oct 2000
|
posted 10-02-2004 21:57
|
poi
Paranoid (IV) InmateFrom: France Insane since: Jun 2002
|
posted 10-02-2004 22:50
|
BillyRayPreachersSon
Bipolar (III) InmateFrom: London Insane since: Jul 2004
|
posted 10-04-2004 01:03
|
poi
Paranoid (IV) InmateFrom: France Insane since: Jun 2002
|
posted 10-04-2004 01:25
|
Iron Wallaby
Paranoid (IV) InmateFrom: USA Insane since: May 2004
|
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 ScientistFrom: Omicron Persei 8 Insane since: Oct 2000
|
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) InmateFrom: France Insane since: Jun 2002
|
posted 11-03-2004 21:47
has anybody seen BillyRayPreachersSon recently ?

|
wrayal
Bipolar (III) InmateFrom: Cranleigh, Surrey, England Insane since: May 2003
|
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) InmateFrom: France Insane since: Jun 2002
|
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 : - TwoD
- shingebis
- BillyRayPreachersSon

|
TwoD
Nervous Wreck (II) InmateFrom: Sweden Insane since: Aug 2004
|
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) InmateFrom: Cranleigh, Surrey, England Insane since: May 2003
|
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) InmateFrom: France Insane since: Jun 2002
|
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) InmateFrom: London Insane since: Jul 2004
|
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) InmateFrom: Sweden Insane since: Aug 2004
|
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) InmateFrom: France Insane since: Jun 2002
|
posted 11-05-2004 12:59
Great! and Congratulations.
Don't forget to create an "entries" and a "comments" thread.

|