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…
two or more
I know how to do two but NINE? AHH!
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.
There might be a way simpler way, but I would have to look into that.
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
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.
Do infine outputs work as good as outfine inputs?
OMG
How many of the max of 75 blocks does that take, so I know what I’m working with?
29 to be exact
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.
@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?
Well, it’s definitely gonna use a chunk of memory, but it’s worth a shot!
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