This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#426 2011-09-02 08:12:05

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

If you were a real JavaScripter you would have put ";"s at the end of the lines.  tongue
HP134 did the last part though. Should this be for scratcher7_13?

Offline

 

#427 2011-09-02 08:19:36

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

<post by="Hardmath123">
Hmm;
I thought scratcher7_13 quit;
Maybe you could do it;
or me  tongue ;
</post>

^^ ^^
Happy?
tongue

Last edited by Hardmath123 (2011-09-02 08:20:06)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#428 2011-09-02 08:23:06

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Lol.  big_smile
Did he?
Hey, I don't think you've made an official part yet.

You should have made that a function.  tongue

Offline

 

#429 2011-09-02 08:32:01

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Ok, then. I'll try to do the next bit, myself.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#430 2011-09-02 09:50:33

comment_list
New Scratcher
Registered: 2011-05-24
Posts: 5

Re: Xenon Inc. Developers' Thread

Hardmath123 wrote:

Wake up call!

You mean "resuscitation"? -_-

Offline

 

#431 2011-09-02 16:33:04

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Inc. Developers' Thread

Code:

#include <iostream>
using namespace std;

int main()
{
   cout << "That sounds good to me." << newl;
   return 0;
}

Offline

 

#432 2011-09-02 18:57:38

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

Which code should I test? I'll be back on sunday, about noon.


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=square&amp;user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=applejack

Offline

 

#433 2011-09-03 04:50:04

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

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

Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#434 2011-09-03 14:11:36

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

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

 

#435 2011-09-05 00:16:42

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

Code:

PROGRAM:CONFUSED
:ClrHome
:Disp "WHY IS EVERYONE","USING COMPLEX","COMPUTER","LANGUAGES? ALL I","REALLY KNOW IS TI","BASIC. IT'S SO","MUCH EASIER."

http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=square&amp;user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=applejack

Offline

 

#436 2011-09-05 04:48:33

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

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  tongue
If you want I can explain most of it.

Offline

 

#437 2011-09-05 11:29:26

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

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?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#438 2011-09-05 12:07:50

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Ok.

Offline

 

#439 2011-09-05 15:12:14

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

Kay.

Hardmath123 wrote:

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?


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=square&amp;user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=applejack

Offline

 

#440 2011-09-05 20:26:00

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Inc. Developers' Thread

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

 

#441 2011-09-08 20:30:12

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Inc. Developers' Thread

We are currently awaiting Hardmath's pseudo-code.  After that, who wants to code it into Scratch (has a fast computer)?

Offline

 

#442 2011-09-09 02:44:46

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

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.  big_smile

Offline

 

#443 2011-09-10 03:36:17

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

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.

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^]]
    [/]
[-^]

Code:

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)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#444 2011-09-10 12:26:52

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

Happy 9/10/11!


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=square&amp;user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=applejack

Offline

 

#445 2011-09-11 03:49:26

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

applejack wrote:

Happy 9/10/11!

That's kind of off-topic.  tongue
Now it's 9/11 though.

I'm starting to port it.

Last edited by scimonster (2011-09-11 03:49:58)

Offline

 

#446 2011-09-11 08:08:58

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Thanks, sci.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#447 2011-09-11 18:12:47

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Inc. Developers' Thread

I appreciate your signature, scimonster.  There was a really nice broadcast on the news today of the 10th anniversary ceremony.

Offline

 

#448 2011-09-12 02:34:35

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Thanks, Amcerbu.

Offline

 

#449 2011-09-13 08:09:32

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Squeak doesn't know what to draw!  yikes  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

 

#450 2011-09-13 19:20:44

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

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  sad

scimonster wrote:

Squeak doesn't know what to draw!  yikes  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.


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=square&amp;user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=applejack

Offline

 

Board footer