Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » The HwS Questions Directory
- something_nice
-
1 post
The HwS Questions Directory
![](http://cdn.scratch.mit.edu/scratchr2/static/__74e70580e9dbe93ce1c3f8422dde592d__/djangobb_forum/img/smilies/roll.png)
when green flag clicked
forever
ask [ggs] and wait
end
- AldgatePupil16
-
7 posts
The HwS Questions Directory
Chudi Studios Unleashed
And to to
@aldgatepupil16
@redname2
@red4elephant
@extras104
- Deplixed
-
45 posts
The HwS Questions Directory
1.6 2D lists2D lists, also known as 2D arrays, nested lists, or matrices, are a type of data structure that allows you to put an entire list as an element of another list; that is, it allows you to put lists inside of lists. These sorts of data structures are used widely in other programming languages and functions similarly to a table.
This block, and others, would allow you to create 2D lists to store information. However, this is too complicated for what is supposed to be an introductory programming language. There are workarounds possible by using an ordinary list and an indexing function. For those who are interested, it may be worth checking out Snap!. It is a block-based programming language designed for experienced programmers and has more advanced data structures than Scratch does.
add [] to sublist () of [list v] :: listView source
nihao
![](http://cdn.scratch.mit.edu/scratchr2/static/__74e70580e9dbe93ce1c3f8422dde592d__/djangobb_forum/img/smilies/yikes.png)
- forkmanb
-
100+ posts
The HwS Questions Directory
this isn't the place to put blocks. please test scratchblocks here:when green flag clicked
ask [Is this cool] and wait
https://scratch.mit.edu/discuss/topic/741323/
- MrInteractions
-
7 posts
The HwS Questions Directory
- -InsanityGames-
-
500+ posts
The HwS Questions Directory
![](https://u.cubeupload.com/InsanityImages/QmXeGa.png)
PROFILEㅤ・ㅤGITHUBㅤ・ㅤGIVE AN INTERNETㅤ・ㅤULTIMATE TOLORS QUOTER
yo check back another time
- -InsanityGames-
-
500+ posts
The HwS Questions Directory
(#209)In all seriousness though, is it okay if I take over this directory? I already own this Bugs and Glitches directory which uses automation, and this directory hasn't been updated in over a year.
An inactive directory? Intriguing…
![](https://u.cubeupload.com/InsanityImages/QmXeGa.png)
PROFILEㅤ・ㅤGITHUBㅤ・ㅤGIVE AN INTERNETㅤ・ㅤULTIMATE TOLORS QUOTER
yo check back another time
- blah_blahYa
-
11 posts
The HwS Questions Directory
when green flag clicked
forever
if <(star and heart) = (clicked)> then
change [points] by((points) + (10))
end
Last edited by blah_blahYa (March 20, 2024 19:20:03)
- blah_blahYa
-
11 posts
The HwS Questions Directory
when green flag clicked
set [inputExpression v] to (3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3)
initialize [outputQueue v] to []
initialize [operatorStack v] to []
repeat (length of (inputExpression))
set [currentToken v] to (letter (i) of (inputExpression))
if <(currentToken) = [a number]> then
add (currentToken) to (outputQueue)
else
if <(currentToken) = [an operator]> then
repeat until <<(operatorStack) = []> or <(currentToken) has greater precedence than (top of (operatorStack))>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a left parenthesis]> then
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a right parenthesis]> then
repeat until <<(operatorStack's top) = [a left parenthesis]>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
remove (operatorStack's top) // Remove the left parenthesis
end
end
end
end
end
repeat until <<(operatorStack) = []>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
define push(item v) onto(stack v)
add (item) to (stack)
define remove top from(stack v)
delete (1) of (stack)
define top of(stack v)
(item (1) of (stack))
define has greater precedence than(item1 v) (item2 v)
<((item1) has greater precedence than (item2))>
define a number
<(currentToken) = [0] or (currentToken) = [1] or (currentToken) = [2] or (currentToken) = [3] or (currentToken) = [4] or (currentToken) = [5] or (currentToken) = [6] or (currentToken) = [7] or (currentToken) = [8] or (currentToken) = [9]>
define an operator
<((currentToken) = ["+"] or (currentToken) = ["-"] or (currentToken) = ["*"] or (currentToken) = ["/"] or (currentToken) = ["^"])>
define a left parenthesis
<(currentToken) = ["("]>
define a right parenthesis
<(currentToken) = [")"]>
Last edited by blah_blahYa (March 21, 2024 21:28:52)
- -InsanityGames-
-
500+ posts
The HwS Questions Directory
Didn't expect to casually find someone using my project here lol1.6 2D lists2D lists, also known as 2D arrays, nested lists, or matrices, are a type of data structure that allows you to put an entire list as an element of another list; that is, it allows you to put lists inside of lists. These sorts of data structures are used widely in other programming languages and functions similarly to a table.
This block, and others, would allow you to create 2D lists to store information. However, this is too complicated for what is supposed to be an introductory programming language. There are workarounds possible by using an ordinary list and an indexing function. For those who are interested, it may be worth checking out Snap!. It is a block-based programming language designed for experienced programmers and has more advanced data structures than Scratch does.
add [] to sublist () of [list v] :: listView source
Last edited by -InsanityGames- (March 21, 2024 21:22:33)
![](https://u.cubeupload.com/InsanityImages/QmXeGa.png)
PROFILEㅤ・ㅤGITHUBㅤ・ㅤGIVE AN INTERNETㅤ・ㅤULTIMATE TOLORS QUOTER
yo check back another time
- DaBestCoconut
-
7 posts
The HwS Questions Directory
- BigNate469
-
1000+ posts
The HwS Questions Directory
Highlight any part of this signature and press ctrl+shift+down arrow to see the rest of it
foreverPlease read the list of Officially Rejected Suggestions before posting a suggestion for Scratch! 100th post
if <person asks [what's a signature] :: sensing> then
Redirect to [https://en.scratch-wiki.info/wiki/Signature] :: motion
end
end
This signature is designed to be as helpful as possible.
View all of the topics you've posted in:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=topics
View all of your posts:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=posts
Forum tips:
Don't post in topics where the latest post is over ~2 months old, unless you have something critical to add. Especially in topics that are several years old- it isn't helpful, and is known as necroposting.
Don't post unrelated things in topics, including questions of your own. Make a new topic for your questions.
You can use the
[color=color name or hexadecimal value here] and [/color]
Lesser-known Scratch URLs:
https://scratch.mit.edu/projects/PROJECT ID HERE/remixtree (replace “PROJECT ID HERE” with project id number. Shows all the remixes of the project, and the remixes of those projects, and the remixes of those projects, and so on, as a chart. Link currently redirects to one of my projects)
View a larger list at: https://scratch.mit.edu/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch.mit.edu/discuss/topic/762351/
1000th post
- Oleksyshyn29
-
13 posts
The HwS Questions Directory
move () steps[scratchblocks]
turn cw () degrees
[/scratchblocks][scratchblocks]
backdrop #
[/scratchblocks]
A
- BluePixelLOLLL
-
100+ posts
The HwS Questions Directory
when green flag clicked
set [inputExpression v] to (3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3)
initialize [outputQueue v] to []
initialize [operatorStack v] to []
repeat (length of (inputExpression))
set [currentToken v] to (letter (i) of (inputExpression))
if <(currentToken) = [a number]> then
add (currentToken) to (outputQueue)
else
if <(currentToken) = [an operator]> then
repeat until <<(operatorStack) = []> or <(currentToken) has greater precedence than (top of (operatorStack))>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a left parenthesis]> then
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a right parenthesis]> then
repeat until <<(operatorStack's top) = [a left parenthesis]>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
remove (operatorStack's top) // Remove the left parenthesis
end
end
end
end
end
repeat until <<(operatorStack) = []>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
define push(item v) onto(stack v)
add (item) to (stack)
define remove top from(stack v)
delete (1) of (stack)
define top of(stack v)
(item (1) of (stack))
define has greater precedence than(item1 v) (item2 v)
<((item1) has greater precedence than (item2))>
define a number
<(currentToken) = [0] or (currentToken) = [1] or (currentToken) = [2] or (currentToken) = [3] or (currentToken) = [4] or (currentToken) = [5] or (currentToken) = [6] or (currentToken) = [7] or (currentToken) = [8] or (currentToken) = [9]>
define an operator
<((currentToken) = ["+"] or (currentToken) = ["-"] or (currentToken) = ["*"] or (currentToken) = ["/"] or (currentToken) = ["^"])>
define a left parenthesis
<(currentToken) = ["("]>
define a right parenthesis
<(currentToken) = [")"]>
when green flag clickedhuh
set [inputExpression v] to (3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3)
initialize [outputQueue v] to []
initialize [operatorStack v] to []
repeat (length of (inputExpression))
set [currentToken v] to (letter (i) of (inputExpression))
if <(currentToken) = [a number]> then
add (currentToken) to (outputQueue)
else
if <(currentToken) = [an operator]> then
repeat until <<(operatorStack) = []> or <(currentToken) has greater precedence than (top of (operatorStack))>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a left parenthesis]> then
push (currentToken) onto (operatorStack)
else
if <(currentToken) = [a right parenthesis]> then
repeat until <<(operatorStack's top) = [a left parenthesis]>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
remove (operatorStack's top) // Remove the left parenthesis
end
end
end
end
end
repeat until <<(operatorStack) = []>>
add (operatorStack's top) to (outputQueue)
remove (operatorStack's top)
end
define push(item v) onto(stack v)
add (item) to (stack)
define remove top from(stack v)
delete (1) of (stack)
define top of(stack v)
(item (1) of (stack))
define has greater precedence than(item1 v) (item2 v)
<((item1) has greater precedence than (item2))>
define a number
<(currentToken) = [0] or (currentToken) = [1] or (currentToken) = [2] or (currentToken) = [3] or (currentToken) = [4] or (currentToken) = [5] or (currentToken) = [6] or (currentToken) = [7] or (currentToken) = [8] or (currentToken) = [9]>
define an operator
<((currentToken) = ["+"] or (currentToken) = ["-"] or (currentToken) = ["*"] or (currentToken) = ["/"] or (currentToken) = ["^"])>
define a left parenthesis
<(currentToken) = ["("]>
define a right parenthesis
<(currentToken) = [")"]>
Last edited by BluePixelLOLLL (April 24, 2024 04:24:17)
Reese's Peanut Butter Cup Fan Studio | The Forumers Hideout!
![](http://cdn.scratch.mit.edu/scratchr2/static/__9c6d3f90ec5f8ace6d3e8ea1e684b778__/djangobb_forum/img/smilies/mad.png)
![](http://cdn.scratch.mit.edu/scratchr2/static/__9c6d3f90ec5f8ace6d3e8ea1e684b778__/djangobb_forum/img/smilies/mad.png)
![](http://cdn.scratch.mit.edu/scratchr2/static/__9c6d3f90ec5f8ace6d3e8ea1e684b778__/djangobb_forum/img/smilies/mad.png)
![](http://cdn.scratch.mit.edu/scratchr2/static/__9c6d3f90ec5f8ace6d3e8ea1e684b778__/djangobb_forum/img/smilies/mad.png)
4-11-2024 - Joined Scratch Highlight+Shift+Down to see the rest on my siggy!
when my project gets clicked :: #3495eb hat~~~~~~~~~~~~~~~~~~~~~~~
You hopefully say [This is a good project!] for (2) secs :: looks
Then you heart and favorite it :: operators
And leave a comment saying something nice about it :: #fc00ec
define [Scratch] 100x (1000) 6^78*9 [Cat] celsiusCustom Scratch Forum Emojis:
set sky color to [#47af6e] + [119] [th v] element of the periodic table:: #fc00ec
if <[something v] contains [something] + DjangoBB ?> then
Do activity [Dance v] :: #574027
end
Create [1,000,000,000,000,000,000,000th] project :: #134567
![](https://u.cubeupload.com/fmji/1f976.png)
![](https://u.cubeupload.com/fmji/1f633.png)
![](https://u.cubeupload.com/fmji/1f440.png)
![](https://u.cubeupload.com/fmji/1f923.png])
![](https://cdn.scratch.mit.edu/scratchr2/static/images/help/spritesforcommunityguid.png)
- Kingsharpblade23
-
5 posts
The HwS Questions Directory
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
when I receive [ v]
- 4w350m3g4m3r79
-
20 posts
The HwS Questions Directory
Last edited by 4w350m3g4m3r79 (May 13, 2024 17:22:58)
when quoted, ::events ::extention hat
send quote (Send (text from quoted comment ::sensing) to [AI] ::motion) to (person who quoted ::sensing) ::control
stop [this script v]
- Discussion Forums
- » Help with Scripts
-
» The HwS Questions Directory