this (link to project) uses the psudo arrow technique to determin wether or not the password is valid. Is it any good? How dose it resemble this project?
hey addzero jens has made a downloadable app for scratch that has a array thing that's in the varibles section and stuff you could probably make a never ending simon game (as in getting longer and harder each time) with it(here's his project about his app (link to project) )
Yeah, that's a good idea. I think the array pen method might be better in that case... this allows for larger numbers and decimal places, but it's a pain to expand (right now it could only go up to 16 turns. is that enough?) and a Simon game would only need 4 colors for each place.
Aha! now I got it (I kept the mouse pressed the last time). Cool! I guess I really should finish the xml export/import in Chirp, so local variables stay local, hmm...
Thanks for checking it out! Hmmm, What kind of troubles? I cleaned the directions some. Click, let go, for it to start recording. And made it so you don't have to click the green flag to make it work when downloaded. I'm wondering if it's skipping some of the reads or writes... Thanks for chirp btw!
Click the cat and move the mouse, left and right. The cat will copy your moves.
An array is a bunch of variables in one. This "array" has 16 compartments it can store in.
When you click the cat, it sets these variables in order 1, 2, 3 ,4 ... to the x-mouse position. when it's done, it reads those back and moves to that order.
This "array" works like this: First the set-value is set to to the x-mouse, then to store it in a certain compartment, say #1, the set-at is changed to 1.
When that set-at is changed from 0, it does the 'number guessing game' to determine what compartment (or variable) to set: Is it less then nine? yes. is it less then 5? yes. Is it less then 3? yes. Is it less then 2? yes. ok, then set variable 1 to set-value. after it's done storing the number where it goes, it sets "set-at" back to 0 to wait for the next set.
The get method works about the same way.
I did this tree/guessing method to lower then number of steps needed to determine what variable to set or get. so instead of 16 tests with a "flat" test, (Is it 1? no. Is it 2? no. Is it 3? no...) there's just four.
and it's expandable. (for 32 places only 5 tests are needed, for 64 only 6 tests are needed...) so that's when you should start to notice a performance gain over the flat method.
It's would just be a pain to expand this. I may use jen's chirp with xml export to do it. I just had trouble with the global variables changing back to local when imported back it... I'll have to build it another way. You're welcome to try. Or I'll save some hair and wait for arrays to be put in scratch. =(:-)
Comments
You need to be logged in to post comments
Add a Comment
it wont work for me =(
(view all replies)Comment Reply
this (link to project) uses the psudo arrow technique to determin wether or not the password is valid. Is it any good? How dose it resemble this project?
(view all replies)Comment Reply
(link to project) check this out!its a warriors thing
(view all replies)Comment Reply
I tricked it
(view all replies)Comment Reply
man, if scratch had arrays i could made a full-scale linerider instead of a one view line rider.
(view all replies)Comment Reply
I made him go off screen!
(view all replies)Comment Reply
me to0!
(view all replies)Comment Reply
also caulden't u make it have more storeage by copying the scripts and modifying them a little
(view all replies)Comment Reply
and right now i really think you shold try to make a simple 5 to 15 level simon game
(view all replies)Comment Reply
hey addzero jens has made a downloadable app for scratch that has a array thing that's in the varibles section and stuff you could probably make a never ending simon game (as in getting longer and harder each time) with it(here's his project about his app (link to project) )
(view all replies)Comment Reply
Yeah, that's a good idea. I think the array pen method might be better in that case... this allows for larger numbers and decimal places, but it's a pain to expand (right now it could only go up to 16 turns. is that enough?) and a Simon game would only need 4 colors for each place.
(view all replies)Comment Reply
awsome idea u could make the color game simon out of this! Could u do that?
(view all replies)Comment Reply
Wow! Cool. At first I was a bit confused, but I like it, keep up the good work.
(view all replies)Comment Reply
Thanks. I wanted to compare this with the pen/stamp array method: (link to project)#
(view all replies)Comment Reply
Aha! now I got it (I kept the mouse pressed the last time). Cool! I guess I really should finish the xml export/import in Chirp, so local variables stay local, hmm...
(view all replies)Comment Reply
Thanks for checking it out! Hmmm, What kind of troubles? I cleaned the directions some. Click, let go, for it to start recording. And made it so you don't have to click the green flag to make it work when downloaded. I'm wondering if it's skipping some of the reads or writes... Thanks for chirp btw!
(view all replies)Comment Reply
Interesting! a fine simulation of an array using a set of variables. I did have some troubles, even when I downloaded it, though...
(view all replies)Comment Reply