Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Fewest amount of blocks technically needed to use Scratch
- Mryellowdoggy
-
Scratcher
1000+ posts
Fewest amount of blocks technically needed to use Scratch
Define ‘needed to use Scratch’. You can make a project using just this block
say []or no blocks at all and you'd be using Scratch.
- blubby4
-
Scratcher
100+ posts
Fewest amount of blocks technically needed to use Scratch
I'm not sure how you're going to do greater/less than, but you can replace the<[] = []>
<not <>>
<<> and <>>
(() + ())
<[] = []>with
<[] > []>
and create
<[] = []>by doing
<<not <(a) > (b)>> and <not <(b) > (a)>>>instead.
- BigNate469
-
Scratcher
1000+ posts
Fewest amount of blocks technically needed to use Scratch
snipAnd you can replace both of those with a NOT operator. In fact, everything a computer does can be replicated- with NOT operators, since all logic gates can be created out of NOT operators (and that includes OR). Since it's possible to store data using just logic gates (like how DRAM works if I remember correctly), you can replicate an entire computer using NOT gates.
- TheCreatorOfUnTV
-
Scratcher
1000+ posts
Fewest amount of blocks technically needed to use Scratch
Replaced both the NOT and AND gates since you could do this for NOT:snipAnd you can replace both of those with a NOT operator. In fact, everything a computer does can be replicated- with NOT operators, since all logic gates can be created out of NOT operators (and that includes OR). Since it's possible to store data using just logic gates (like how DRAM works if I remember correctly), you can replicate an entire computer using NOT gates.
<<boolean :: grey> = [false]>and this for AND:
<(<boolean 1 :: grey> + <boolean 2 :: grey>) = [2]>
Last edited by TheCreatorOfUnTV (Sept. 9, 2024 23:38:30)
- blubby4
-
Scratcher
100+ posts
Fewest amount of blocks technically needed to use Scratch
You mean NOR or(If we're talking about logic, then xor) NAND. NOT only takes 1 input.snipAnd you can replace both of those with a NOT operator. In fact, everything a computer does can be replicated- with NOT operators, since all logic gates can be created out of NOT operators (and that includes OR). Since it's possible to store data using just logic gates (like how DRAM works if I remember correctly), you can replicate an entire computer using NOT gates.
Last edited by blubby4 (Sept. 10, 2024 00:07:31)
- BigNate469
-
Scratcher
1000+ posts
Fewest amount of blocks technically needed to use Scratch
Yeah actually I guess you would need an OR.You mean NOR or NAND. NOT only takes 1 input.snipAnd you can replace both of those with a NOT operator. In fact, everything a computer does can be replicated- with NOT operators, since all logic gates can be created out of NOT operators (and that includes OR). Since it's possible to store data using just logic gates (like how DRAM works if I remember correctly), you can replicate an entire computer using NOT gates.
- Jonathan50
-
Scratcher
1000+ posts
Fewest amount of blocks technically needed to use Scratch
Define ‘needed to use Scratch’. You can make a project using just this blockThe first post explainssay []or no blocks at all and you'd be using Scratch.
- blubby4
-
Scratcher
100+ posts
Fewest amount of blocks technically needed to use Scratch
NOR/NAND are both considered single gates. (Oh, also, DRAM uses capacitors to store data, and has been phased out by SRAM, which is likely what you were thinking ofYeah actually I guess you would need an OR.You mean NOR or NAND. NOT only takes 1 input.snipAnd you can replace both of those with a NOT operator. In fact, everything a computer does can be replicated- with NOT operators, since all logic gates can be created out of NOT operators (and that includes OR). Since it's possible to store data using just logic gates (like how DRAM works if I remember correctly), you can replicate an entire computer using NOT gates.
Last edited by blubby4 (Sept. 10, 2024 00:33:35)
- BigNate469
-
Scratcher
1000+ posts
Fewest amount of blocks technically needed to use Scratch
NOR/NAND are both considered single gates. (Oh, also, DRAM uses capacitors to store data, and has been phased out by SRAM, which is likely what you were thinking ofBut only because they're simple, not because they are the most basic of them. Both are created using a series of transistors (which themselves are essentially AND gates themselves).
Using OR and NOT, you can do
<not <<not <>> or <not <>>>>which is an AND gate.
- han614698
-
Scratcher
1000+ posts
Fewest amount of blocks technically needed to use Scratch
(#441)The basic idea is that most blocks are workaroundable. So the question is, how many blocks can you remove but still have Scratch 100% functional?
Define ‘needed to use Scratch’. You can make a project using just this blocksay []or no blocks at all and you'd be using Scratch.
- blubby4
-
Scratcher
100+ posts
Fewest amount of blocks technically needed to use Scratch
NOR/NAND are both considered single gates. (Oh, also, DRAM uses capacitors to store data, and has been phased out by SRAM, which is likely what you were thinking ofBut only because they're simple, not because they are the most basic of them. Both are created using a series of transistors (which themselves are essentially AND gates themselves).
Using OR and NOT, you can do<not <<not <>> or <not <>>>>which is an AND gate.
[pedantic]
NOR and NAND are universal logic gates, them along with AND, OR, XOR, XNOR (and NOT) are all basic logic gates. Transistors aren't logic gates, but they can recreate the basic logic gates. I guess most chips would make their own weird gates with transistors, because it would be faster/cheaper/less noisy than adhering to only the basic gates.
Some more info about stuff:
https://en.wikipedia.org/wiki/Logic_gate#Universal_logic_gates
https://en.wikipedia.org/wiki/De_Morgan%27s_laws
[/pedantic]
Anyway, we're turning this into an advanced off-topic or maybe I am
Last edited by blubby4 (Sept. 10, 2024 01:09:56)
- TheCreatorOfUnTV
-
Scratcher
1000+ posts
Fewest amount of blocks technically needed to use Scratch
Bump
- TheCreatorOfUnTV
-
Scratcher
1000+ posts
Fewest amount of blocks technically needed to use Scratch
Bump
- 8to16
-
Scratcher
1000+ posts
Fewest amount of blocks technically needed to use Scratch
for a simple clicker the only necessary blocks would be:
when this sprite clicked
change [ v] by (1)
- Discussion Forums
- » Advanced Topics
-
» Fewest amount of blocks technically needed to use Scratch






