Property checking value against each other system

How would I make a system of properties (9) that check for who has the highest value but if two or more (highest) properties are equal it goes through a randomizer?

Maybe you could use variables and make nine variables store the property value, and then check the variables, to where it wouldn’t waste two blocks but instead one…
:thinking:

1 Like

two or more

1 Like

I know how to do two but NINE? AHH!

1 Like

I believe this would require a bit of block code where it checks all 9 properties against each other with the inequality piece. You would need a lot of repetition and have it check which ones are bigger than others and have the bigger one check for the next and so on. If it meets up with a tie in the top two, then have the inequality piece check for, = to each other and have the if, do piece active a set property piece with the two properties as a random integer.

1 Like

There might be a way simpler way, but I would have to look into that.

1 Like

Yeah I knew there was going to be a lot of repetition for finding two equal properties but I need two or more which would use up a lot of memory

1 Like

I mean, you might be able to fit it within the 75 block piece limit? It would be ideal if you could only waste 500 memory for that one block. You might need to transfer more, I don’t know exactly. Did you need help with the repetition of the check thing inside the block? Never mind I have to go, sorry.

2 Likes

Do infine outputs work as good as outfine inputs?

1 Like

How would I build off of this?

1 Like

OMG
:exploding_head:


How many of the max of 75 blocks does that take, so I know what I’m working with?
:thinking:

1 Like

29 to be exact

1 Like

Okay, so what I’m thinking is to use a BUNCH of triggers instead of one, and check at the same time, so presumably they will output the highest one, and if two are the highest then they will be transferred to another property(s) and a final trigger will do a random integer pick on a Highest 1, 2, 3+ and input the one it selects…
Lemme see what I can figure out.
:saluting_face:

@SeamlessMoon
Is it possible for them all to get the same number, or what’s the max number of them that can be the same?
:face_with_monocle:

Well, it’s definitely gonna use a chunk of memory, but it’s worth a shot!
:smiling_face_with_sunglasses:
I’m assuming this is for your Tic-Tac-Toe game?

It is absolutely possible for all 9 to be equal
There is no max

1 Like

Guess what?
I will use 40,500 memory to implement my system if my problem doesn’t get solved[1]


  1. and a ton of time that I have nothing better to do in ↩︎