Hi R0J0hound
I think I managed to simplify the problem in a way that you can just tell which way I should go to solve it.
The interface is made up of:
1) randomly shuffled sequence of letters (ABCD) (eg CDAB appeared in the draw (which corresponds to frames 2301))
2) 3 blocks of 4 random numbers from 1 to 4, a sequence of which is drawn. (eg 4213/3214/2134 - the last one was drawn and a list of frame numbers was saved in a variable)
3) 4 numbers that serve as parameters for a new position change (eg 4321 - a list of frame numbers saved in a variable)
4) 3 blocks of 4 random numbers from 1 to 4, a sequence of which is drawn. (eg 1234/2413/3142 - the last one was drawn and a list of frame numbers was saved in a variable)
5) Randomly shuffled sequence of letters (ABCD) or we can leave them all in frame 0 and then adjust according to the formation of the stage 4)
Making a simulation of the process based on the data previously informed and with the user selecting the correct options:
1) CDAB
2) 2134 (corresponds to DCAB)
3) 4321 (BACD)
4) 3124 (CBAD)
5) Sequence of letters that corresponds to the positions of stage 4, that is, the sequence that will form the CBAD if we change the positions of the letters from the bottom to the top.
In this case the correct solution would be BACD. This is the sequence that should appear below.
I need to know how to register these frame changes at each stage. If I have this stage 4 value, I can use it to form the letters that are in stage 5 and when I do the reverse order, I would have to hit the bottom with the letters at the top. Do you think it's clearer now?