Recursion

Install Java to view this project right on your browser!

user_icon Jens shared it 3 years, 4 months ago
1132 views, 7 taggers, 16 people love it, 158 downloads, in 1 gallery
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
Skirga Skirga 1 week, 5 days ago

How did you make this?

Dab1998 Dab1998 11 months, 3 weeks ago

Jens, do you know how to make a new block type in scratch 1.4? I'm making a variant of it called Dab.

shadowfan54 shadowfan54 1 year, 1 month ago

Hey, i have this! :)

isbill1819 isbill1819 1 year, 2 months ago

lol

Rahi-Tak Rahi-Tak 1 year, 2 months ago

The program is utterly amazing. O_o

Pecola1 Pecola1 1 year, 3 months ago

you should make it so on BYOB when you press share you can share online by having all of the costume blocks turn into the regular blocks and it will open in scratch so you can upload it!

Pecola1 Pecola1 1 year, 2 months ago

Or make a BYOB.mit.edu where you can post projects

Pecola1 Pecola1 1 year, 3 months ago

*custom sorry I typed that fast. what I mean is by making the custom blocks have all the blocks which are regular scratch blocks come out you can make it upload-able.

(view all replies)
PyrosTheStickman PyrosTheStick… 1 year, 4 months ago

Why not make custom blocks local to another custom block?And if there's a "show/hide variable"block,why not have a "show/hide"list block?Anyway,how do you make a block with the elements editor?I hacked Scratch to make a block,so can I copy the text for that block spec into BYOB's source code?

Jens Jens 1 year, 4 months ago

That's actually a great idea and something Brian keeps bugging me about, too, so we'll probably end up doing it at some time :)

(view all replies)
caiden123 caiden123 1 year, 4 months ago

jens im having trouble with my new mac os x. I tried to upload my project and it freezed and said please hold down the power button to restart and it got rid of scratch and i haft to download it again and it also did that with audacity. do you know what happend

Jens Jens 1 year, 4 months ago

I'm sorry, I don't own a Mac. But it sounds like there was something awry with your connection, not with the Scratch software

(view all replies)
sccar3 sccar3 1 year, 5 months ago

im going to make my own modification of scratch. I already know how to make a bunch of blocks but how do i make the actual modification?

PyrosTheStickman PyrosTheStick… 1 year, 5 months ago

Was messing around in Squeak the only thing required to make BYOB??

Jens Jens 1 year, 5 months ago

essentially yeah :-)

PyrosTheStickman PyrosTheStick… 1 year, 5 months ago

Whenever I click "compile this project"in BYOB,what do I do with the command windows that show up?(I have BYOB 3)

Jens Jens 1 year, 5 months ago

the command window is supposed to go away again all by itself, then the Documents folder opens and in it you'll find an executable by the name of your project.

(view all replies)
Jwosty Jwosty 1 year, 5 months ago

Yay! BYOB 3 has been out for a while! I absolutley ADORE it. :D Also, This is completely unrelated, but could you help me with this forum topic: (link to forums) ? I'd really appreciate it... But nice screenshot, anyway!

developdood developdood 1 year, 6 months ago

I am modifying the scratch source code but I want to create a new scripts tab and block type. I tried to but it didn't work. Can you help me?

piisawesome123 piisawesome123 1 year, 6 months ago

How can you modify Scratch to make .EXE files?

PyrosTheStickman PyrosTheStick… 1 year, 5 months ago

WIth BYOB you can(You know Cryteria's Area 42??He used BYOB to make all 3 parts to his series programs.I downloaded them:D)

infinite_minus_zero infinite_minu… 1 year, 9 months ago

...this could change things... alot... :D

Jens Jens 1 year, 9 months ago

Oh, it's done: BYOB

(view all replies)
piecar piecar 1 year, 9 months ago

HOW DO I OPEN?! When I double-click, it says Please select an imige file... and I cant!

MountainBoy MountainBoy 6 months, 1 week ago

you and me both.

gaggerzon gaggerzon 1 year, 9 months ago

Jens, if you ever read this, what made you think of making BYOB. Are you a program maker or a hacker or something??? When i grow up I want to make things like BYOB but for other programs and stuff

Jens Jens 1 year, 9 months ago

Hi gaggerzon, I made BYOB simiply to find out if it could be done, and then people began to really like it, and Brian (he's the world's best programming teacher) taught me about first class procedures and we decided to try these also. Yes, I'm a programmer and a lawyer, and I think it's really cool that you want to programm nice things! Scratch definitely is the best place to start!

(view all replies)
gamester-F1 gamester-F1 1 year, 10 months ago

Hey, jens, can you give me a link to download BYOB 2.0?

Jens Jens 1 year, 10 months ago

sure: http://chirp.scratchr.org/dl/BYOB.ZIP

gamester-F1 gamester-F1 1 year, 10 months ago

hey, Jens*, I saw that video of yours in youtube about these options you made in scratch like locking two sprites together and resizing a sprite. If you dont remember, heres the link- http://www.youtube.com/user/jmoenig

Jens Jens 1 year, 10 months ago

yes, they are in BYOB 2.0

(view all replies)
electrified123 electrified123 1 year, 10 months ago

can you tell me what you edited to make the byob all of the edits so i could try to add to it and make it where you can actually share the projects to. like can you tell me what you did in the system browser i already know how to get there can you tell me what you typed?

TheGameMaster1231 TheGameMaster… 1 year, 12 months ago

Hey Jens, If You Didn't Already Read My Post In The Forums, I Need Help With The Blocks In BYOB. Is There ANY Way To Get The Blocks I Made In BYOB Onto The Scratch Website For People To Use In Thier Projects? Please Help!

Jens Jens 1 year, 12 months ago

I'm sorry, BYOB is an experimental prototype that's currently not supported by the Scratch online Java player. It's cool that you're trying BYOB, though!

(view all replies)
Jwosty Jwosty 2 years ago

Hey, Jens, do you think its possible that BYOB will be built into the next version of scratch (if there will be one)? Thanks! :)

MountainBoy MountainBoy 6 months, 2 weeks ago

It's going to have BYOB like features! YAY though I'm not sure how to install BYOB help?

Jens Jens 2 years ago

I can't tell you about that, because I don't know. What I can tell you, however, is that there is going to be a new, exciting version of BYOB sometime in spring

(view all replies)
rdococ rdococ 2 years, 2 months ago

Any way, how did you make the "make a block" in scratch and not BYOB?

fishergirl2 fishergirl2 2 years, 2 months ago

this looks like a teacher chat page!

Jens Jens 2 years, 2 months ago

You know, in a way it is, because some teachters are using this experimental feature in their classes

fishergirl2 fishergirl2 2 years, 2 months ago

why is the flaag and red stop sign in circles like that? How did you get thta?

sparks sparks 2 years, 2 months ago

it's an old version of scratch. they looked like that from before around V 1.3

RHY3756547 RHY3756547 2 years, 3 months ago

I'd be great if this was included in actual scratch.

RHY3756547 RHY3756547 2 years, 3 months ago

*It'd

Rotation Rotation 2 years, 5 months ago

hey, deine spiele und animationen sind echt toll. aber ich habe ned frage: wenn ich eigene musik hochladen will, steht immer das format ist ungültig. wie kann ich das ändern?

sparks sparks 2 years, 2 months ago

a translation into english: "hey, your games and animations are really great. But I have a question: when I try to load my own music, it always says that the format is not supported. how can I change this?" alle formats sind nicht gultig fur Scratch, es verwandelt sie alle in mp3, aber alle formats kann es nich verwandeln also mussen sie ein software selber finden das dein lied format in mp3 verwandelt.

(view all replies)
bharvey bharvey 2 years, 6 months ago

Oops I see the newlines in my message became spaces. //// to vee / lt 45 / fd 50 / run pick [square star hex] / bk 50 / rt 90 / etc. /////// WHEN I RECEIVE SQUARE / SQUARE ///// :-)

bharvey bharvey 2 years, 6 months ago

.... when you get more than one level of recursion, the sprite gets lost and doesn't manage to return to its starting point, and the picture is weird. So there's something about BROADCAST AND WAIT that doesn't play well with recursion, is my guess. A single level of recursion (i.e., two levels of VEE) works fine. Thanks. PS The ATOMIC box should be unchecked by default. My students keep getting hung irretrievably. And if the argument gets small enough, a Squeak debugging console appears

bharvey bharvey 2 years, 6 months ago

I tried this classic (Paul Goldenberg) Logo recursion: to vee left 45 forward 50 run pick [square star hexagon] back 50 right 90 forward 50 run pick [square star hexagon] back 50 left 45 end except that since Scratch doesn't have RUN, I had to say BROADCAST (ITEM ANY OF SHAPES) AND WAIT where SHAPES is a list containing the elements SQUARE STAR HEXAGON and the sprite has scripts like WHEN I RECEIVE SQUARE SQUARE and so on. This works fine, but when you add VEE to the list of shapes,[cont.]

bharvey bharvey 2 years, 6 months ago

Hi, can you say when the next release will be out? I have a summer class right now that's eager to build blocks that include ask/answer. Thanks!

Jens Jens 2 years, 6 months ago

Hi, it's already done. I'll ask John if it's okay to post it now/sometime next week (because the official source code for Scrath 1.4 is not yet posted)

rubiks_cube_guy238 rubiks_cube_g… 2 years, 6 months ago

If you can't make it so that you can create a block with boolean inputs in BYOB, why not make a reporter block for BYOB that has a boolean input? The block could report 1 if the boolean is true, and 0 if the boolean is false.

Jens Jens 2 years, 6 months ago

The next version of BYOB will take any input, including text and boolean reporter blocks in every argument field. You'll be able to access the booleans within the block definition using the (round) parameter blocks from the block template

(view all replies)
ActionCat210 ActionCat210 2 years, 7 months ago

I read your reply on the comment below...so...its kinda like a hack if I'm following right?And how did you get the screen shot?

Adamman715 Adamman715 2 years, 7 months ago

Here's half the question: How to Take A Screen Shot: go to the page you want to take a screen shot of, and hit Print Screen on the keyboard (Windows)

(view all replies)
StBernard17 StBernard17 2 years, 7 months ago

I downloaded BOYB awhile ago, and I also went to your website and downloaded Elements. What exactly is Elements?

Jens Jens 2 years, 7 months ago

Thanks for you interest in my little experiments! Elements is the beginning of a new graphical programming language - or rather a graphical drag'n'drop user interface for Smalltalk. It lets you manipulate the Scratch source code almost like it was written in Scratch itself

scratchycat625625 scratchycat62… 2 years, 7 months ago

Hi, since your on the Scratch team, I want say that dragging the scratch source into Scratch doesnt open the Squeak workspace.

StBernard17 StBernard17 2 years, 7 months ago

Squeak is a whole different program. If you don't have it, you can't open Scratch in it!

(view all replies)
bharvey bharvey 2 years, 8 months ago

Breaking out of a runaway recursion isn't working for me on my MacBook Pro. I *didn't* click on "atomic," so the stop sign should work, but it doesn't, and neither does esc-mouseclick.

Jens Jens 2 years, 8 months ago

Thanks for this bug-report. I'm just now adjusting BYOB to the upcoming Scratch release, and will try to figure out what's causing this (the esc-mouseclick really came as an afterthought and is somewhat kludgy). Could be related to Scratch not yielding to other processes until the innermost loop is completed, so stacking code in deeply nested loops seems to cause more hang-ups. You could try filling in some "timed" blocks (waits) and see what happens (I'd like to know). Thanks again!

mirror-rorrim mirror-rorrim 2 years, 9 months ago

I'm using it right now, its awesome. Wish I could share though! :)

keghani keghani 2 years, 10 months ago

wow, are u a computer scientist!!??

Jens Jens 2 years, 10 months ago

Not really, I'm a Smalltalk programmer turned lawyer and turned Smalltalk programmer-lawyer, lol!

(view all replies)
music_man music_man 2 years, 11 months ago

Thanks for your help. I found a book about squeak and how to use it. Do you know of a book that starts explaining some of the code? I'll need it after I read the first book. Do you think the book I am reading now is a good start? Here is the link to it: http://www.squeakbyexample.org/

Jens Jens 2 years, 11 months ago

SBE is an excellent book to refer to, besides it's free, and I believe it comes with it's own environment in which to check out the examples. There's also an excllent and much shorter bank account tutorial somewhere on the Squeak site written by John Maloney, who's now the lead programmer for Scratch, and who invented and introduced the Morphic user interface paradigm to Squeak (which is central part of Scratch)

music_man music_man 2 years, 11 months ago

How did you learn how to do all of this stuff? I would like to learn how to do things like this but where do I start? Do you know of a web page that tells you how to do stuff like this in scratch?

Jens Jens 2 years, 11 months ago

Hi music_man, thanks for you interest in BYOB, Scratch, and programming in general! I love programming, and I guess whenever you truly love doing something it will eventually become easier. Scratch is programmed in Squeak, which is an open source variant of the Smalltlk programming language, and rather well documented (check squeak.org) Smalltalk is generally considered to be easy. However, there's a learning curve to Smalltalk, so be prepared to not immediately master super-complex stuff...

Magnie Magnie 3 years ago

I'm Going To Try To Make A Block In BYOB thats <Pointing Towards | Sprite | > If Thats Possible..I'm Going To Try Though.

Bentheneighbor Bentheneighbor 3 years ago

This looks cool, but it doesn't work on 's.

likegames likegames 1 year, 8 months ago

It does. Just double-click the image file (in 10.3 and over).

SpaceManSpif SpaceManSpif 3 years, 1 month ago

I dom't know if i should download BYOB it might couse virisis.

mathguy mathguy 2 years, 11 months ago

no it won't i didn't. did you get that idea by a warning on your browser?

yoda432 yoda432 3 years, 1 month ago

1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1.3.1 very stange image file

yoda432 yoda432 3 years, 1 month ago

image file "1.3.1" its strange if i do 1.3.1.3.1.3.1

Auron Auron 3 years, 2 months ago

My mum's Vista ( which I'm on now ) won't work when I do the % thing. It says Subscript is out of bounds even when I I just do in the create your own block with the block name of "%"

Jens Jens 3 years, 2 months ago

just '%' doesn't work (yet) in BYOB, because I fixed that bug in Scratch 1.3 only later (for 1.3.1). Use "%parameter" instead.

(view all replies)
InfernoFalcon InfernoFalcon 3 years, 2 months ago

Seems fairly limited to be, because you can only use blocks already in scratch to build your block, am I wrong? Also, when is chirp going to be able to play 1.3 projects in screensavers!?

FoxDur FoxDur 3 years, 2 months ago

Is there a way to add drop down lists to blocks?

Jens Jens 3 years, 2 months ago

not yet, FoxDur. Which drop down lists would you be interested in?

(view all replies)
FoxDur FoxDur 3 years, 2 months ago

Yay I just made my own block! I'm so excited! Thank you! :D

music_man music_man 3 years, 2 months ago

Do you think you could try to make a block that can save or load games? All you need to save is the variables and lists. Also, how do you do this stuff in scratch? Your like the master at making code for it.

Jens Jens 3 years, 2 months ago

actually, music_man, my prototype for lists (before they were introduced to Scratch)included file-access blocks for lists: http://www.chirp.scratchr.org/blog/?p=16

buddha108 buddha108 3 years, 2 months ago

oh, wait i get it!

buddha108 buddha108 3 years, 2 months ago

I know how this works but in a custom block how do you get a block like this; [Dragon__order__turn]? all I an get is one big block of [Dragon order turn] Please reply!

buddha108 buddha108 3 years, 2 months ago

Spelling error; not an, get.

(view all replies)
music_man music_man 3 years, 2 months ago

Ok now I understand. Thank you for telling me how to make it work on the iMac. Can you tell me some tips of how you can use this? Also, like the variables, can you make it have a drop down menu? If so, can you tell me how?

Jens Jens 3 years, 2 months ago

Why don't you have a look at the sample projects that come with this. You can look at how each is done by right clicking on it and selecting edit. This will give you some ideas how to get going. Also, there's a (too long, I know) pdf with a sort of user manual

music_man music_man 3 years, 2 months ago

That sounds cool. Do you think you could try to make it compatible with the iMac? Or is that o hard to do? I tried to download it to see what it dose, but it is an .exe.

likegames likegames 3 years, 2 months ago

double-click the image file

Jens Jens 3 years, 2 months ago

Hi music_man, you can use BYOB on a Mac, just copy the file 'scratch.app' into the folder in which you extracted the download archive. Then drop the file named "byob.image" on "scratch.app", and you should be all set to go!

(view all replies)
music_man music_man 3 years, 2 months ago

Can you explain what this dose? I'm still confused.

Jens Jens 3 years, 2 months ago

Hi music_man. This project shows what the "BYOB"-prototype does, which lets you build your own custom blocks in Scratch (rather than having to use Smalltalk), and how you can use a custom block within its own definition

likegames likegames 3 years, 2 months ago

*so it is scratch-legal.

Jens Jens 3 years, 2 months ago

let's rather try to maybe incorporate something like this into real Scratch...

(view all replies)
likegames likegames 3 years, 2 months ago

P.S I know it is scratch-illegal, make the share button make it upload it to a "BYOB projects" page of the chirp website.

likegames likegames 3 years, 2 months ago

Make a share button and a hat block feature and ability to put your blocks in categories also % options (like %n for numbers). Hope 1.1 is made soon!

Lightnin Lightnin* 3 years, 2 months ago

Wow, that is really cool. Will BYOB be added into future version of main Scratch app?

Jens Jens 3 years, 2 months ago

Thanks for trying it, Lightnin! BYOB is as of now just an experimental prototype, nothing official

likegames likegames 3 years, 3 months ago

how do you share projects with it?

Jens Jens 3 years, 3 months ago

You can't share these projects on the website, but I embedded a compiler, so you can share them as .exe

(view all replies)
Please Wait...