True Random Generation | Theory

Uhh…
I’m completely confused but ok. It’s a little late to stop now.

I’ll give y’all some background info:

Note: this isn’t the whole system. This is just if you are in column #1.

First, we’re just setting some variables, then we get to the first if-block. We see if the second number in the cell is a 1. This is important since we already know that we’re in column 1, so we need to see if we’re in cell 11, the entrance (which only has two possible continuations. We select the one at random and update a variable for the one we chose.

Second, we check if it’s cell 17. Important because it’s the back corner, so only two continuations. Same basics as the entrance.

Third, if it isn’t one of those, it’s on the right edge, with three possible continuations, up (+1), right (+10), and down (-1).

Next, we broadcast the deactivation code. It starts with “d” (so it doesn’t teleport me to a monopoly square, which happened earlier before upgrading the codes), then has the number barrier to deactivate, then the random number. This is important because some vertical barriers share names with horizontal barriers around the same cell (e.g. B27). But since it’s vertical or horizontal, we can just tell if we were moving vertically (odd) or horizontally (even) by the random number.

Lastly, we reset the cell property. This is where I ran into block limit trouble, because the cell is the barrier we deactivated, +1 if we moved up or right, -1 if we moved left or down. So we have to find the difference between the barrier and the previous cell, but make it just 1 or -1, accomplished with an exponent of zero.

This process is basically the same for all columns, just a bit different based on cell numbers. It just keeps on repeating until it reaches the end.


I’m assuming your talking about this:

Also, I don’t that Slim liked it on my screen.


Way less blocks? This is one of 6 triggers that decide the thing. How? I need to see your code.

1 Like

I mean, it’s not exact. Not even close to exact. But it has randomization, it has the checking, and the code is in this topic somewhere.

1 Like

Ok, I made as much sense as I could, it appears that you have made if/else statements to specifically target the corner squares since they have limited directions.

This is a different method than what I did, as since you are trying to do this with only one property.

(I am not summing up the entire code, just a part of it from your explanation)

1 Like

Ok, you have post 70…
but I’m not sure how that works at all.


Yeah, it has to be complicated because I’m only using 1 property.


But could anybody find a way to fit in that extra block? I didn’t ask y’all to criticize my code…
just help it.

1 Like

Your right, mb. I’ll see.

Well, first thing, what was the number of the missing block?

Let’s go, Inky is here, they’ll clear this up

Doesn’t the last part of your code raising to the power of 0 always return 1, not +/-1?
You can’t progress further until you solve that issue first.

1 Like

No, it should return 1 if the input is positive, and -1 if the input is negative. Let me go make sure Gimkit does the math right.

1 Like

You sure about that?
image

4 Likes

You’ve got to be kidding me I searched it up but didn’t notice it did this:
image
uhhhhhhhh back to square one thanks Inky


Oh well I might just have to give up on this it’s probably impossible with just 1 property

4 Likes

I think it would be possible.
Suppose you have three lists:
A,B,C
A,C,D
B,C,D
You could condense the lists into one list using separator characters:
A,B,C/A,C,D;B,C,D
Then look for the occurences of a letter and see if it is between the correct separators.
For example, say you wanted to find if the letter A was in the second list.
I don’t have the block code interface available, but if you could find all occurences of the letter A and determine if the position in the text for any occurrence of the letter was higher than the position of the / but lower than the position of the ;, you would be able to use only one property.
However, as I said earlier, I don’t know if the necessary blocks to complete this task are available. On Monday I’ll be able to try this.

3 Likes

ohhh yeah that makes sense.

Update on my guide: I am so close to finishing it. I will post it sometime this weekend while I finish and proofread it.

@Here_to_help Update update: All that’s left for me to create is the last trigger + how to set up building the maze with barriers >:D

If I am able to work on this without distractions I should finish this in less than an hour.

6 Likes

Can’t wait to see it!

3 Likes

I’ve posted it.

5 Likes

Welcome to the forums! The guide I posted was for this topic. It was asked if random generation was possible, so I created a random maze!

5 Likes

what was wrong with the [Detailed] on my title @Quack_QuackG?

but its Ok I am just curious