nXIII wrote:
sparks wrote:
johnnydean1 wrote:
Nice and I believe someone asked for that ratio block that I made. Can you post it?
huh? I if you wrote it, don't you have a copy?
Code:
| hcm highest number r1 r2 correct o1 o2 output breaker | " The thing between the numbers " breaker_ ':'. highest_ t2. t1 > t2 ifTrue: [ highest_ t1. ]. highest_ highest + 1. number_ 0. highest timesRepeat: [ correct_ 0. correct_ correct asNumber. number_ number + 1. r1_ t1 \\ number. r2_ t2 \\ number. r1 = 0 ifTrue: [ correct_ correct + 1. ]. r2 = 0 ifTrue: [ correct_ correct + 1. ]. correct = 2 ifTrue: [ hcm_ number ]. ]. o1_ t1 / hcm. o2_ t2 / hcm. output_ self concatenate: (o1) with: (' '). output_ self concatenate: (output) with: (breaker). output_ self concatenate: (output) with: (' '). output_ self concatenate: (output) with: (o2). ^ outputThat's a bit long...?
Code:
$Number$:$Number$ r ^ t1 / (t1 + t2)
Wow... Jd1... I think the right phrase for thi moment, is served...
Offline
But NXIII's is a 0.787878 type number mines:
10 : 10 --> 1 : 1
15 : 5 --> 3 : 2
so it is the lowest ratio.
Offline
johnnydean1 wrote:
But NXIII's is a 0.787878 type number mines:
10 : 10 --> 1 : 1
15 : 5 --> 3 : 2
so it is the lowest ratio.
$Number$:$Number$ r |frac| frac := (Fraction numerator: t1 denominator: t1 + t2) reduced. ^frac numerator asString, ':', (frac numerator / t1 * t2) asString.
Last edited by nXIII (2010-07-11 13:23:44)
Offline
nXIII wrote:
johnnydean1 wrote:
But NXIII's is a 0.787878 type number mines:
10 : 10 --> 1 : 1
15 : 5 --> 3 : 2
so it is the lowest ratio.Code:
$Number$:$Number$ r |frac| frac := (Fraction numerator: t1 denominator: t1 + t2) reduced. ^frac numerator asString, ':', (frac numerator / t1 * t2) asString.
Served again...
Offline
markyparky56 wrote:
nXIII wrote:
johnnydean1 wrote:
But NXIII's is a 0.787878 type number mines:
10 : 10 --> 1 : 1
15 : 5 --> 3 : 2
so it is the lowest ratio.Code:
$Number$:$Number$ r |frac| frac := (Fraction numerator: t1 denominator: t1 + t2) reduced. ^frac numerator asString, ':', (frac numerator / t1 * t2) asString.Served again...
I just realized that 15:5 is 3:1....
Offline
nXIII wrote:
markyparky56 wrote:
nXIII wrote:
Code:
$Number$:$Number$ r |frac| frac := (Fraction numerator: t1 denominator: t1 + t2) reduced. ^frac numerator asString, ':', (frac numerator / t1 * t2) asString.Served again...
I just realized that 15:5 is 3:1....
Yeah...
Offline
May I request 2 features:
1.)
I was thinking of getting a LEGO WeDo (TM) to use with Scratch (and Panther) and I see there is a motor block. Now if I was to buy a second motor could you change the motor blocks to:
set motor $Number$ to direction
So I could make a robot car or something
2.)
How about a feature:
Turn script into Squeak
So:
set |hello| to |10|
change x by |hello|
would become:
|hello|
hello_ 10.
self changeXposBy: (hello).
So blocks would be easier to make!
Offline
johnnydean1 wrote:
May I request 2 features:
1.)
I was thinking of getting a LEGO WeDo (TM) to use with Scratch (and Panther) and I see there is a motor block. Now if I was to buy a second motor could you change the motor blocks to:
set motor $Number$ to direction
So I could make a robot car or something
2.)
How about a feature:
Turn script into Squeak
So:
set |hello| to |10|
change x by |hello|
would become:
|hello|
hello_ 10.
self changeXposBy: (hello).
So blocks would be easier to make!
About the second one, 2 things, 1. Im not sure thats actualy possible, 2. Thats just making things to easy and it just wouldn't work.
Offline
About to start work on idea 2. Is there anyway for me to get the names of all blocks in a script?
Offline
You wold basically be adding BYOB. also what's "k"?
Last edited by paulpsicle (2010-07-12 18:33:30)
Offline
paulpsicle wrote:
You wold basically be adding BYOB. also what's "k"?
It'd be a little different than BYOB...
Oh and 'k' means Okay.
Offline
Umm It would be quite a bit diffent from BYOB as:
Once youve made it into squeak, you cant edit it (unless you change the squeak)
Also it would bring us a step closer to:
(join (BYOB) and (Panther))
Offline
johnnydean1 wrote:
Umm It would be quite a bit diffent from BYOB as:
Once youve made it into squeak, you cant edit it (unless you change the squeak)
Also it would bring us a step closer to:
(join (BYOB) and (Panther))
Joining byob to panther is an awesome thing, ut it wouldn't, all that block does is just make blocks into code, not making blocks from other blocks.
Offline
Okay. Here are a couple of my ideas for Panther 1.1 or higher:
Libraries - these would let you use an |import [ library ]| block so you could extend the commands that Panther could use. For example, you could use the import like this |import [wiimote]| which would add a lot of different wii remote commands to Panther, such as being able to read x, y, and z coordinates from the wiimote or being able to use the wiimote buttons.
Blank blocks - these would be exactly what they sound like, blank blocks with a string input on them. These would be where you would type the commands from the library you imported, or you could type in normal panther commands in them such as 'move 10 steps' . There would be command, reporter, and boolean blocks like this.
Script, Costume, and Sound Grouping - these would let you make groups for scripts, costumes, and sounds. The groups would be accessed by tabs on the bottom of the window. This would be very useful for de-cluttering and speed.
I hope you consider these suggestions.
Offline
ScratchReallyROCKS wrote:
Okay. Here are a couple of my ideas for Panther 1.1 or higher:
Libraries - these would let you use an |import [ library ]| block so you could extend the commands that Panther could use. For example, you could use the import like this |import [wiimote]| which would add a lot of different wii remote commands to Panther, such as being able to read x, y, and z coordinates from the wiimote or being able to use the wiimote buttons.
Blank blocks - these would be exactly what they sound like, blank blocks with a string input on them. These would be where you would type the commands from the library you imported, or you could type in normal panther commands in them such as 'move 10 steps' . There would be command, reporter, and boolean blocks like this.
Script, Costume, and Sound Grouping - these would let you make groups for scripts, costumes, and sounds. The groups would be accessed by tabs on the bottom of the window. This would be very useful for de-cluttering and speed.
I hope you consider these suggestions.
As you might know, Panther 1.1/2.0 is going to be a mod of Blocks++, my new Scratch-inspired application. Some of these suggestions may be in Blocks++, or exclusively Panther:
Libraries - I think an "Extension Manager" might be better, which provides tools for organizing, adding, and deleting extension packages ("libraries"). Since Blocks++ blocks are code-based (vs. Scratch's message-based system), it will be easier to add blocks from a file. Thanks for this suggestion!
Blank blocks - This may be possible in the form of this block:
[ [function]([ ] - +) ]
Blocks++ has a more c++/Java-like function notation:
[function_name(arg1 arg2 arg3)]
So this might accomplish what you're talking about. I'm not sure I like the string input, though, maybe a smart-dropdown which detects primitives, user-defined procedures, and external library procedures.
Script, Costume, and Sound grouping - This would be a nice feature, but I can't put it at the top of the list . Maybe in a later version of Blocks++ or Panther.
Offline
nXIII wrote:
ScratchReallyROCKS wrote:
Okay. Here are a couple of my ideas for Panther 1.1 or higher:
Libraries - these would let you use an |import [ library ]| block so you could extend the commands that Panther could use. For example, you could use the import like this |import [wiimote]| which would add a lot of different wii remote commands to Panther, such as being able to read x, y, and z coordinates from the wiimote or being able to use the wiimote buttons.
Blank blocks - these would be exactly what they sound like, blank blocks with a string input on them. These would be where you would type the commands from the library you imported, or you could type in normal panther commands in them such as 'move 10 steps' . There would be command, reporter, and boolean blocks like this.
Script, Costume, and Sound Grouping - these would let you make groups for scripts, costumes, and sounds. The groups would be accessed by tabs on the bottom of the window. This would be very useful for de-cluttering and speed.
I hope you consider these suggestions.As you might know, Panther 1.1/2.0 is going to be a mod of Blocks++, my new Scratch-inspired application. Some of these suggestions may be in Blocks++, or exclusively Panther:
Libraries - I think an "Extension Manager" might be better, which provides tools for organizing, adding, and deleting extension packages ("libraries"). Since Blocks++ blocks are code-based (vs. Scratch's message-based system), it will be easier to add blocks from a file. Thanks for this suggestion!
Blank blocks - This may be possible in the form of this block:
[ [function]([ ] - +) ]
Blocks++ has a more c++/Java-like function notation:
[function_name(arg1 arg2 arg3)]
So this might accomplish what you're talking about. I'm not sure I like the string input, though, maybe a smart-dropdown which detects primitives, user-defined procedures, and external library procedures.
Script, Costume, and Sound grouping - This would be a nice feature, but I can't put it at the top of the list . Maybe in a later version of Blocks++ or Panther.
Sounds great!
P.S: I'd love to help with Blocks++ *hint hint*
Offline
nXIII wrote:
I'm not sure I like the string input, though, maybe a smart-dropdown which detects primitives, user-defined procedures, and external library procedures.
That's sort of what I meant, just in string input form, because then it could be used for in-script comments.
BTW, how's blocks++ going?
Last edited by ScratchReallyROCKS (2010-07-14 15:37:48)
Offline
ScratchReallyROCKS wrote:
nXIII wrote:
I'm not sure I like the string input, though, maybe a smart-dropdown which detects primitives, user-defined procedures, and external library procedures.
That's sort of what I meant, just in string input form, because then it could be used for in-script comments.
BTW, how's blocks++ going?
smooooooooth new sig rocky!
Offline
Dear rest of the Panther Team (And rest of the world...)
I am hereby retiring from my position as Panther Developer, not because I do not support, or want to help Panther, but because I am pursuing other things. This does not mean that I cant help beta test, or give suggestions, or anything else
I will continue my position only if you want me to do so.
Sincerely,
SeptimusHeap
Offline
sparks wrote:
smooooooooth new sig rocky!
Thanks! I was just looking at some Gimp tutorials so I decided to make it.
SeptimusHeap wrote:
Dear rest of the Panther Team (And rest of the world...)
I am hereby retiring from my position as Panther Developer, not because I do not support, or want to help Panther, but because I am pursuing other things. This does not mean that I cant help beta test, or give suggestions, or anything else
I will continue my position only if you want me to do so.
Sincerely,
SeptimusHeap
Wait a second......you came up with Panther, and now you don't want it anymore?
Oh well. Good luck with the other things you're pursuing.
Last edited by ScratchReallyROCKS (2010-07-14 16:05:36)
Offline