Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 05-20-2010, 03:26 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Assuming you've never approached this problem in the particular language, then it helps sharpen problem solving-skills.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #17  
Old 05-20-2010, 03:46 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by DeCeaseD View Post
And how exactly do experienced scripters get more experience through doing things they can obviously do? If anything, these exercises should be helping newer scripters learn.
If you've got any ideas for learning exercises how about you make a thread of your own?
Reply With Quote
  #18  
Old 05-20-2010, 05:48 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by fowlplay4 View Post
PHP Code:
function onCreated() { temp.'"'temp."function onCreated() { temp.q = '%s'; temp.s = %s%s%s; temp.s = format(temp.s, temp.q, temp.q, temp.s, temp.q); echo(temp.s); }"temp.format(temp.stemp.qtemp.qtemp.stemp.q); echo(temp.s); } 
This is very nice.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #19  
Old 05-20-2010, 08:13 AM
DeCeaseD DeCeaseD is offline
Registered User
Join Date: Jan 2008
Posts: 247
DeCeaseD will become famous soon enough
Quote:
Originally Posted by DrakilorP2P View Post
If you've got any ideas for learning exercises how about you make a thread of your own?
Well, if I was as great at scripting as some of you are, I wouldn't have a problem doing so. But obviously my knowledge of scripting prevents me from doing so.
Reply With Quote
  #20  
Old 05-20-2010, 01:02 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by DeCeaseD View Post
But obviously my knowledge of scripting prevents me from doing so.
Then please stay out of the scripting forum if all you're going to do is criticize others for trying to hone their skills. Clearly level collabs are also a waste of time, right?
__________________
Reply With Quote
  #21  
Old 05-20-2010, 08:44 PM
DeCeaseD DeCeaseD is offline
Registered User
Join Date: Jan 2008
Posts: 247
DeCeaseD will become famous soon enough
Quote:
Originally Posted by cbk1994 View Post
Then please stay out of the scripting forum if all you're going to do is criticize others for trying to hone their skills. Clearly level collabs are also a waste of time, right?
Yeah, I'm going to stay out of the scripting forums for giving my opinion. Clearly my opinion has nothing to do with criticizing. I simply stated that I lack the knowledge to be able to make anything of a "scripting exercise". So, exactly what are you talking about??
Reply With Quote
  #22  
Old 05-20-2010, 09:02 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Next exercise plx.
__________________
Quote:
Reply With Quote
  #23  
Old 05-20-2010, 10:13 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by DeCeaseD View Post
Yeah, I'm going to stay out of the scripting forums for giving my opinion. Clearly my opinion has nothing to do with criticizing. I simply stated that I lack the knowledge to be able to make anything of a "scripting exercise". So, exactly what are you talking about??
Cool, now get out.
__________________
Reply With Quote
  #24  
Old 05-20-2010, 11:21 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by SKJF91 View Post
You're like a little whining girl trying to act cool, please come back when your testicles separate more then 1/2 centimeter from your 1 1/2 inch *****. thank you. (in other words, why are you insulting someone for not being as 'good of a scripter' as you? especially when you're honestly not even that good)
I wouldn't insult someone for being a poor scripter. Did you even read the thread?

Quote:
Originally Posted by DeCeaseD View Post
Don't get this at all.. you should make programming exercises for people who are at a more average level.
Quote:
Originally Posted by DeCeaseD View Post
And how exactly do experienced scripters get more experience through doing things they can obviously do? If anything, these exercises should be helping newer scripters learn.
His criticism of this exercise when he clearly does not understand how scripting works (noted by his statement "doing things they can obviously do") is why I'm telling him to get out. His cynicism is not doing anything to help people who have an interest in learning to script or those who wish to improve their scripting. If anything, it's discouraging others from creating similar challenges.


Sweet irony.
Quote:
(in other words, why are you insulting someone for not being as 'good of a scripter' as you? especially when you're honestly not even that good
__________________
Reply With Quote
  #25  
Old 05-21-2010, 05:07 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by fowlplay4 View Post
PHP Code:
function onCreated() { temp.'"'temp."function onCreated() { temp.q = '%s'; temp.s = %s%s%s; temp.s = format(temp.s, temp.q, temp.q, temp.s, temp.q); echo(temp.s); }"temp.format(temp.stemp.qtemp.qtemp.stemp.q); echo(temp.s); } 
Shortened

PHP Code:
function onCreated(){temp.s="function onCreated(){temp.s=\"%s\";temp.s=format(temp.s,temp.s);echo(temp.s);}";temp.s=format(temp.s,temp.s);echo(temp.s);} 
(It may not be -exactly- the same, but I think the lack of escaped quotes in the output is acceptable)

I propose the next exercise be a function generate prime numbers (with an arbitrary upper limit).
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #26  
Old 05-21-2010, 05:55 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by coreys View Post
Shortened

PHP Code:
function onCreated(){temp.s="function onCreated(){temp.s=\"%s\";temp.s=format(temp.s,temp.s);echo(temp.s);}";temp.s=format(temp.s,temp.s);echo(temp.s);} 
(It may not be -exactly- the same, but I think the lack of escaped quotes in the output is acceptable)

I propose the next exercise be a function generate prime numbers (with an arbitrary upper limit).
That was what I originally had, but it wasn't a true replication so I had go to the way I did with the quote variable. Ideally you should be able to paste your output, apply and have it still working.
__________________
Quote:
Reply With Quote
  #27  
Old 05-21-2010, 05:56 AM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by Bell View Post
Think of it as a scripters puzzle game. They do it for fun.
This kind of fun makes my head hurt, I think I'll go back to playing with a rock and a stick
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #28  
Old 05-21-2010, 06:06 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by coreys View Post
(... but I think the lack of escaped quotes in the output is acceptable)
It is not. (You can however take advantage of the fact that s maps to temp.s after definition.)

Quote:
Originally Posted by coreys View Post
I propose the next exercise be a function generate prime numbers (with an arbitrary upper limit).
Noted, but it's a pretty trivial calculation.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #29  
Old 05-21-2010, 06:28 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
My new shorter one.. only real difference is that format takes place in the echo.

PHP Code:
function onCreated(){q='"';s="function onCreated(){q='%s';s=%s%s%s;echo(format(s,q,q,s,q));}";echo(format(s,q,q,s,q));} 
__________________
Quote:

Last edited by fowlplay4; 05-21-2010 at 07:00 AM..
Reply With Quote
  #30  
Old 05-22-2010, 06:14 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by Tolnaftate2004 View Post
Noted, but it's a pretty trivial calculation.
*shrug* it's a worthwhile exercise I think. Although the real trick would be getting it to generate prime numbers 'concurrently' (not really concurrent, but as close as you can get to it, using scheduleEvent() for example) :P
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
Reply

Tags
programming-exercise, quine

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:43 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.