If you were a real JavaScripter you would have put ";"s at the end of the lines.
HP134 did the last part though. Should this be for scratcher7_13?
Offline
<post by="Hardmath123">
Hmm;
I thought scratcher7_13 quit;
Maybe you could do it;
or me;
</post>
^^ ^^
Happy?
Last edited by Hardmath123 (2011-09-02 08:20:06)
Offline
Lol.
Did he?
Hey, I don't think you've made an official part yet.
You should have made that a function.
Offline
Ok, then. I'll try to do the next bit, myself.
Offline
Hardmath123 wrote:
Wake up call!
You mean "resuscitation"? -_-
Offline
ask: smartpeople a: question | answer | answer _ StringDialog ask: 'How did you put up with coding such a long script? On an old Windows, it''s so slow that I can't even drag a script without freezing it for five minutes!' DialogBoxMorph warn: 'The ', #mouse, ' barely moves!' answer isUseful: [ self use: answer to: 'code next bit' ]. DialogBoxMorph warn: '*sigh*' ^self
Offline
Hardmath123 wrote:
Code:
ask: smartpeople a: question | answer | answer _ StringDialog ask: 'How did you put up with coding such a long script? On an old Windows, it''s so slow that I can't even drag a script without freezing it for five minutes!' DialogBoxMorph warn: 'The ', #mouse, ' barely moves!' answer isUseful: [ self use: answer to: 'code next bit' ]. DialogBoxMorph warn: '*sigh*' ^self
So we're talking in computer codes?
I've got Windows Vista, and I do it in separate pieces. Learned from somewhere. ;D
Offline
applejack wrote:
Code:
PROGRAM:CONFUSED :ClrHome :Disp "WHY IS EVERYONE","USING COMPLEX","COMPUTER","LANGUAGES? ALL I","REALLY KNOW IS TI","BASIC. IT'S SO","MUCH EASIER."
I never learned BASIC. LOL
If you want I can explain most of it.
Offline
Ok, I give up on Scratch on Windows! How about I post a Scratch-pseudocode which somebody else (more patient than I) drags 'n drops?
Offline
Ok.
Offline
applejack wrote:
Code:
PROGRAM:CONFUSED :ClrHome :Disp "WHY IS EVERYONE","USING COMPLEX","COMPUTER","LANGUAGES? ALL I","REALLY KNOW IS TI","BASIC. IT'S SO","MUCH EASIER."
Don't we all love TI BASIC? Speed for the win!
Offline
amcerbu wrote:
We are currently awaiting Hardmath's pseudo-code. After that, who wants to code it into Scratch (has a fast computer)?
My comp is usually pretty fast.
Offline
Here, [innermost] and [innermost brackets] stand of the same thing (the contents of the farthest nested expression) and [list] is the parsed list.
Condensed means I'm not repeating obvious or pre-done code.
/ When Green flag clicked \--
[List setup, condensed]
[Repeat until <(length of [list^]) = [1]>]
[if <[list^] contains [)]>]
[innermost bracket, condensed]
[/]
else
[add all items of [list^] to [^innermost bracket], condensed]
// The following if block should be repeated 5 times, replacing * with the following in the given order: ^,*,/,+,-
[if <([innermost bracket^] contains [*]]
[set [found^] to [find [*]]
[replace item (found) of [innermost^] with (item (found-1) of [innermost^])*(item (found+1) of [innermost^])] // Here, the expression '^' should be replaced with the LOG expression that returns powers.
[delete item (found + 1) of [innermost^]]
[delete item (found - 1) of [innermost^]]
[/]
[-^]functions:
[find [str]]:
[set [find^] to [0]]
[repeat until <(item (find) of [innermost bracket^] = [/])>]
[change [find^ by (1)]
[-^]
[report (find)]Last edited by Hardmath123 (2011-09-10 03:37:17)
Offline
applejack wrote:
Happy 9/10/11!
That's kind of off-topic.
Now it's 9/11 though.
I'm starting to port it.
Last edited by scimonster (2011-09-11 03:49:58)
Offline
Thanks, sci.
Offline
Thanks, Amcerbu.
Offline
Squeak doesn't know what to draw!
I was about to put it together, but it crashed. D:
Tip: Create the sub-script in a separate sprite. Then copy it to the Stage and add it.
Offline
I checked this morning, and Xenon was active because you posted this post. Now it is still active, even though you didn't post anything else! Whenever I post something, Xenon is only active for a few minutes
scimonster wrote:
Squeak doesn't know what to draw!
I was about to put it together, but it crashed. D:
Tip: Create the sub-script in a separate sprite. Then copy it to the Stage and add it.
Offline