A
A
Alexey Zimin2014-01-22 17:31:47
C++ / C#
Alexey Zimin, 2014-01-22 17:31:47

How to find an effective solution to the problem of changing the values ​​of variables according to the scheme (pictured)?

Hello! Here is such a task: to find an effective solution to the problem of replacing the values ​​of variables according to the scheme (pictured).
4047580_m.png
That is, it is necessary that these values ​​\u200b\u200bmove clockwise.
I decided to try to implement it like this (photo 2):
4047579_m.png
With the help of 3 picture boxes. That is, these 3 pictures should change with the help of a given algorithm. But how? I searched, looked, it seems that there is nothing like it anywhere, I decided to ask you. I may be making things more difficult by using picture boxes, but if you have any other ideas, please let me know.
Hope for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2014-01-22
@Alex_Zimin

The simplest is a singly-directed list where the last element refers to the first. To calculate the current sequence - specify the initial element and go up to the list until it is found again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question