You Can Talk About Hopscotch Here; Topic 30 [OFFICIAL]

ooh hello valgo!

4 Likes

idrk because that was a long time

3 Likes

Help Code

How can I make a match box with 1-10?


How can I make this work?
@CodeHelp

4 Likes

When o > 0 and o < 11

1 Like

I dont know why you are using matches when you can use code

1 Like
when o matches ^([1-9]|10)$

match is an extremely powerful code

correct too

1 Like

What’s the ten for?

Sup

you said 1-10, so i included 10

1 Like

Oh ok, let me test it out

1 Like

It works, thank you so much tri:D

1 Like

matches can only match 1 character in [ ] at a time. That’s why you have to OR it with 10 via bitwise OR |

1 Like

^(NOT0|AND2|NAND[01]|OR[12]|NOR0|XOR1|XNOR[02])$

This expression is used to make the project below work. The numbers is represented by the sum of the input(s). Look familiar? These are all Logic Gates.

1 = one ON
2 = both ON
0 = both OFF

@/Tri-Angle how do you like it?

2 Likes

me dum, thx for reminding me lol
homework is killing my brain so thats why

2 Likes

Does anyone have the problem of starting way to many projects to handle :sob:

1 Like

Me, i used to have it but I can control it a bit

2 Likes

How’s does that work?

1 Like

Basically…

The inputs have a binary value: 0 or 1

The output takes the sum of the two inputs, and checks if that sum matches the number in the gate. For example, AND2 will only return true if both inputs are 1 (sum = 2).

The gate name is included, followed by the sum that’ll satisfy the conditions of that gate.

3 Likes

yes

1 Like

I just had the craziest idea:

What if I made a full project where you can connect many logic gates together to form a simple (or complex) computer circuit?

It’s not guaranteed that I will actually do this.

1 Like