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

#5476 2012-06-22 17:44:35

Jrocket97
Scratcher
Registered: 2009-10-03
Posts: 100+

Re: BYOB 3 - Discussion Thread

Is there anyway to use the special rotation sign characters in custom blocks?  I wanted to make a turn over a set amount of time block, and had to use clockwise and counterclockwise instead of the symbols.  Just was curious.

Offline

 

#5477 2012-06-22 17:50:18

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

You could try copy/pasting thesesmile


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#5478 2012-06-22 17:54:55

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

You could try copy/pasting thesesmile

You can't paste into Snap.  hmm

EDIT: You can use alt codes though. :o

Last edited by MathWizz (2012-06-22 17:56:22)


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#5479 2012-06-22 20:12:21

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Appreciating the Google logo today Brian?  big_smile

Offline

 

#5480 2012-06-22 20:59:45

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Appreciating the Google logo today Brian?  big_smile

Ah, yes, that's very cute.  Thanks for pointing it out.  (I never see those things ordinarily; I'm a DuckDuckGo user.)


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5481 2012-06-23 03:43:03

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Suggestion: a <(list) is linked?> block, so you could make higher order functions fast for both representations of lists!
For example, the map block could be

if <(list) is linked?>
report <<call (func) with inputs (item (1 v) of (list))> in front of <map (func) over <all but first of (list)>>>
else
script variables (result) (index)
set [index v] to (1)
set [result v] to (list) //supposed to be the empty list, not the list variable (they are indistinguishable by the scratchblocks tag)
repeat (length of (list)) //supposed to be the red length of block
add (item (index) of (list)) to (result)
change [index v] by (1)
end
report (result)
end

Last edited by joefarebrother (2012-06-23 03:46:55)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5482 2012-06-23 07:15:11

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

Appreciating the Google logo today Brian?  big_smile

Ah, yes, that's very cute.  Thanks for pointing it out.  (I never see those things ordinarily; I'm a DuckDuckGo user.)

I cracked all six ciphers, now I'm inspired to make a Scratch-like environment for this tape stuff.  big_smile

I have a feeling I've officially picked up too many coding projects.  tongue

Last edited by Hardmath123 (2012-06-23 07:17:01)


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

Offline

 

#5483 2012-06-23 07:34:23

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

Suggestion: a <(list) is linked?> block

I'm of two minds about this.  What makes it not a no-brainer is that if possible I'd rather not surface that distinction at all; I have a Scratch-Team-like fear that it'd confuse people who don't know anything about data structures.

If someone is using MAP then they're doing functional programming and that list should be converted to linked form if necessary.  FOR EACH is the example you should be citing.  A purist would say that that's not functional and so the list should be converted to array form.

Maybe we compromise on some kludge, e.g., if you shift-click the pulldown in the IS A block, it offers you more choices, e.g., INTEGER, NON-INTEGER NUMBER, LINKED LIST, DYNAMIC ARRAY, etc.  Jens would hate that, though, I'm guessing.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5484 2012-06-23 09:05:45

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Maybe we compromise on some kludge, (...).  Jens would hate that, though, I'm guessing.

How did you guess?  smile


Jens Mönig

Offline

 

#5485 2012-06-23 11:32:11

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

How did you guess?  smile

Well, there you are, then.  I'm not too worried about this sort of timing problem, anyway, because converting between formats takes linear time, and so an extra conversion thrown into a MAP or FOR EACH will only slow things down by at most a constant factor (since MAP and FOR EACH take linear time, too).


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5486 2012-06-23 13:22:07

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

I'm a DuckDuckGo user.

I tried using that for a while; but it never found what I wanted, so I ended up just using it to search Google for things using it's bang syntax ("!g").

Hardmath123 wrote:

now I'm inspired to make a Scratch-like environment for this tape stuff.  big_smile

I believe it's called a Turing Machine, if you're interested.  smile


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#5487 2012-06-23 18:06:06

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

Hardmath123 wrote:

now I'm inspired to make a Scratch-like environment for this tape stuff.  big_smile

I believe it's called a Turing Machine, if you're interested.  smile

I only just noticed that Hardmath said "Scratch-like environment" instead of "Turing machine in Scratch."  You do realize, right, Hardmath, that the official representation of a Turing machine (apart from the tape) is already graphical?  It's a state diagram, like a finite state machine but with tape actions associated with the transitions.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5488 2012-06-23 21:22:24

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

blob8108 wrote:

Hardmath123 wrote:

now I'm inspired to make a Scratch-like environment for this tape stuff.  big_smile

I believe it's called a Turing Machine, if you're interested.  smile

I only just noticed that Hardmath said "Scratch-like environment" instead of "Turing machine in Scratch."  You do realize, right, Hardmath, that the official representation of a Turing machine (apart from the tape) is already graphical?  It's a state diagram, like a finite state machine but with tape actions associated with the transitions.

By Scratch-like, I implied using drag and drop to place the "instructions" on an "instruction mat" kind of thing, just like the Google simulator (I'm sorry about using bad terminology; bear with me please). Oh yes, and I did mean I was making it in Scratch, too. I'm sure Scratch is powerful enough to handle making something like that.  smile


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

Offline

 

#5489 2012-06-23 22:10:36

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

I'm sure Scratch is powerful enough to handle making something like that.

Yes, because the Turing machine uses the (theoretically infinite) tape to record the intermediate states of the computation, instead of recursion.  So all you have to write is the finite state machine that handles each state change on the tape.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5490 2012-06-24 05:26:47

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: BYOB 3 - Discussion Thread

It definitely is sufficiently powerful: I've written an interpreter for the Turing-Complete language [removed] in Scratch.
[mod note - please do not refer to inappropriate names]

Last edited by scimonster (2012-06-26 08:37:29)

Offline

 

#5491 2012-06-24 05:50:33

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Taneb wrote:

It definitely is sufficiently powerful: I've written an interpreter for the Turing-Complete language [removed] in Scratch.
[mod note - please do not refer to inappropriate names]

I just don't understand that language lol.

Last edited by scimonster (2012-06-26 08:37:39)


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#5492 2012-06-24 10:22:18

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Offline

 

#5493 2012-06-25 10:39:48

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

A couple of BYOB demos now converted to run in Snap!:

tree.xml

animal-game.xml


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5494 2012-06-25 15:29:08

scspaeth
Scratcher
Registered: 2010-02-14
Posts: 20

Re: BYOB 3 - Discussion Thread

bharvey wrote:

A couple of BYOB demos now converted to run in Snap!:

tree.xml

animal-game.xml

Thank you, these examples make it easier to understand some of the concepts described in the Draft Manual.

Offline

 

#5495 2012-06-26 08:35:14

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

I have a feeling I've officially picked up too many coding projects.  tongue

Haha, i know the feeling.

Offline

 

#5496 2012-06-26 11:31:41

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5497 2012-06-26 17:54:20

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I'm ashamed to be asking this question, but how do you import xml files?

Offline

 

#5498 2012-06-26 17:58:12

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

I'm ashamed to be asking this question, but how do you import xml files?

I just figured that out.  tongue  Save it to the desktop, then drag the file onto Snap!. <- the punctuation is disturbing xD

EDIT: And don't forget to delete it from the desktop. You don't want it to clutter the place up, do you?  tongue

Last edited by MathWizz (2012-06-26 18:01:02)


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#5499 2012-06-26 20:06:38

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

I'm ashamed to be asking this question, but how do you import xml files?

Don't be ashamed.  It's our fault for not having a robust save/load up yet.

MathWizz wrote:

EDIT: And don't forget to delete it from the desktop. You don't want it to clutter the place up, do you?  tongue

It doesn't have to be the desktop; you can drag from any open folder!  I made a SnapProjects folder on my desktop.  smile


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5500 2012-06-29 18:32:34

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Just finished a week intro to BJC/BYOB/Snap! in boiling-hot Newark (although for some reason our lab room was freezing; you can't win for losing) for New Jersey teachers.  Now they take our online course in four weeks (I hope) and then we have a wrap-up face-to-face week.

Mon: Intro to BJC, intro to BYOB/Snap!
Tue:  One simulated course week, with (video) lectures, labs, discussion.
Wed: Recursion.
Thu: Higher order functions and lambda.
Fri: Discussion of how this will work in their high school classrooms.

Amazingly, this all went pretty well.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

Board footer