Discuss Scratch

Garamol56
Scratcher
100+ posts

CalcuBlock

In scratch complex calculations get thickened fast. Example:
(((((((((((6543.4) - (3)) / (8)) - (3)) / (86)) - (74)) / (038)) * (38)) - (4)) - (3)) + (((((6) - (3)) / (5)) * (9)) / (8)))
I'm proposing one reporter block that does all of that.
Example:
(Calculate [(6543.4 - 3) / 8) - 3) / 86) - 74) / 038) * 38) - 4) - 3) + ((6 - 3) / 5) * 9) / 8))] :: operators)

It could do any sum involving the symbols “< > / * x + - ( )”
BUT I think we should keep the
([... v] of (9) :: operators)
block.

Last edited by Garamol56 (Dec. 17, 2019 17:53:14)


Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
CCPlymJoe
Scratcher
100+ posts

CalcuBlock

Support
CCPlymJoe

Last edited by CCPlymJoe (Feb. 22, 2018 16:56:36)


Chocolate muffins
Border-Collie
Scratcher
100+ posts

CalcuBlock

Maybe it can look like this:
(calculate ())
(I forgot how to color scratchblocks)
And it can be in the Operators category.

If you see this
Please enter my draw to adopt

Draw to Adopt Studio
Click here for free characters
Coloring contest
My shop
Border-Collie

hellounicorns2
Scratcher
1000+ posts

CalcuBlock

Border-Collie wrote:

Maybe it can look like this:
(calculate () :: operators)
(I forgot how to color scratchblocks)
And it can be in the Operators category.
Yes, like that (did I fix it)
I think that if it looked like that then, yes, support.

inactive :​)
badatprogrammingibe
Scratcher
500+ posts

CalcuBlock

Just implement it yourself.
No support.
hellounicorns2
Scratcher
1000+ posts

CalcuBlock

badatprogrammingibe wrote:

Just implement it yourself.
No support.
Yes, but the problem the author is stating is that the blocks get too thick. Also, how can you implement it yourself when you’re not a scratch team member?

inactive :​)
badatprogrammingibe
Scratcher
500+ posts

CalcuBlock

hellounicorns2 wrote:

badatprogrammingibe wrote:

Just implement it yourself.
No support.
Yes, but the problem the author is stating is that the blocks get too thick. Also, how can you implement it yourself when you’re not a scratch team member?
In the scratch editor, there is a block menu called “More Blocks”.
Click on it, and create a block.

define evaluate [Expression]
... // This block calculates the value
set [return v] to (evaluation)
It's that simple.
hellounicorns2
Scratcher
1000+ posts

CalcuBlock

badatprogrammingibe wrote:

hellounicorns2 wrote:

badatprogrammingibe wrote:

Just implement it yourself.
No support.
Yes, but the problem the author is stating is that the blocks get too thick. Also, how can you implement it yourself when you’re not a scratch team member?
In the scratch editor, there is a block menu called “More Blocks”.
Click on it, and create a block.

define evaluate [Expression]
... // This block calculates the value
set [return v] to (evaluation)
It's that simple.
Yes, but you cannot make circular blocks like
(this one :: operators)

inactive :​)
badatprogrammingibe
Scratcher
500+ posts

CalcuBlock

hellounicorns2 wrote:

badatprogrammingibe wrote:

hellounicorns2 wrote:

badatprogrammingibe wrote:

Just implement it yourself.
No support.
Yes, but the problem the author is stating is that the blocks get too thick. Also, how can you implement it yourself when you’re not a scratch team member?
In the scratch editor, there is a block menu called “More Blocks”.
Click on it, and create a block.

define evaluate [Expression]
... // This block calculates the value
set [return v] to (evaluation)
It's that simple.
Yes, but you cannot make circular blocks like
(this one :: operators)
It's still workaroundable though.
Haz-_-
Scratcher
500+ posts

CalcuBlock

badatprogrammingibe wrote:

-snip-
It's still workaroundable though.
I agree, theres many workarounds like this one:

badatprogrammingibe wrote:

-snip- again
In the scratch editor, there is a block menu called “More Blocks”.
Click on it, and create a block.

define evaluate [Expression]
... // This block calculates the value
set [return v] to (evaluation)
It's that simple.


 continue this hashtag if you live in australia [img]http://u.cubeupload.com/rabbitcarrots/FEDB1435D41540BFB9FB.jpeg[/img] is the image code xD oh and btw this siggy is from @Hellounicorns2    :cool:
Garamol56
Scratcher
100+ posts

CalcuBlock

define evaluate [Expression]
... // This block calculates the value
set [return v] to (evaluation)
1. It would be very hard to implement multiple () support
2. It would be very inaccessible to new scratchers
4. As hellounicorns2 said, you cannot make
(circular :: operators)
custom blocks.
5. What about people who needed a
(calculate () :: operators)
block but couldn't find my (or anyone else's) project with a
define evaluate [Expression]
... // This block calculates the value
set [return v] to (evaluation)
custom block for backpacking.

Last edited by Garamol56 (Feb. 23, 2018 10:30:43)


Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
badatprogrammingibe
Scratcher
500+ posts

CalcuBlock

Garamol56 wrote:

define evaluate [Expression]
... // This block calculates the value
set [return v] to (evaluation)
1. It would be very hard to implement multiple () support
2. It would be very inaccessible to new scratchers
4. As hellounicorns2 said, you cannot make
(circular :: operators)
custom blocks.
5. What about people who needed a
(calculate () :: operators)
block but couldn't find my (or anyone else's) project with a
define evaluate [Expression]
... // This block calculates the value
set [return v] to (evaluation)
custom block for backpacking.
It's very simple to implement this.
I could probably do it in a few minutes.
Garamol56
Scratcher
100+ posts

CalcuBlock

badatprogrammingibe wrote:

It's very simple to implement this.
I could probably do it in a few minutes.
okay then. Can you link me the project when you are done?

Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
badatprogrammingibe
Scratcher
500+ posts

CalcuBlock

Garamol56 wrote:

badatprogrammingibe wrote:

It's very simple to implement this.
I could probably do it in a few minutes.
okay then. Can you link me the project when you are done?
https://scratch.mit.edu/projects/205763551/
Garamol56
Scratcher
100+ posts

CalcuBlock

Your project couldn't do “5+(2+2)”
Let alone “(6543.4 - 3) / 8) - 3) / 86) - 74) / 038) * 38) - 4) - 3) + ((6 - 3) / 5) * 9) / 8))”

The block I'm proposing would be able to support infinite (or up until the project lags out) “()”'s

Example:
5+(3/(9+(2-(7/(2+(42-(4+8)))))))

Last edited by Garamol56 (Feb. 23, 2018 11:34:25)


Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
badatprogrammingibe
Scratcher
500+ posts

CalcuBlock

Garamol56 wrote:

Your project couldn't do “5+(2+2)”
Let alone “(6543.4 - 3) / 8) - 3) / 86) - 74) / 038) * 38) - 4) - 3) + ((6 - 3) / 5) * 9) / 8))”

The block I'm proposing would be able to support infinite (or up until the project lags out) “()”'s

Example:
5+(3/(9+(2-(7/(2+(42-(4+8)))))))
Just be patient while I'm fixing it.
It should only take a few minutes.

Fixed

Last edited by badatprogrammingibe (Feb. 23, 2018 11:43:13)

Garamol56
Scratcher
100+ posts

CalcuBlock

I thought you said it was simple? I did a see inside and it looks very complex

Last edited by Garamol56 (Feb. 23, 2018 11:42:52)


Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
badatprogrammingibe
Scratcher
500+ posts

CalcuBlock

Garamol56 wrote:

I thought you said it was simple? I did a see inside and it looks very complex
It is very simple.
If you think that it is “complex” in any way, then… well, I don't know what to say.
Anyways, I fixed it.

If you don't match parenthesis correctly, it doesn't work though.

Last edited by badatprogrammingibe (Feb. 23, 2018 11:44:55)

Garamol56
Scratcher
100+ posts

CalcuBlock

So this:

Is simpler than this?
(calculate () :: operators)
And anyway that's going to be very hard to create for new scratchers

Last edited by Garamol56 (Feb. 23, 2018 12:21:40)


Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
badatprogrammingibe
Scratcher
500+ posts

CalcuBlock

Garamol56 wrote:

So this:

Is simpler than this?
(calculate () :: operators)
And anyway that's going to be very hard to create for new scratchers
I never said it's simpler than that, but it is very simple.
I find your second comment very insulting to new scratchers like myself.
Any person that is semi-decent at programming would be able to create this.

Powered by DjangoBB