N
N
Nidere2018-07-10 15:48:51
Algorithms
Nidere, 2018-07-10 15:48:51

Is it even possible?

I pass the test "school 21", and there are tasks for the simplest algorithms.
At some of the levels I saw this and still arrive in shock.
You need to collect all the stars with the "arrow".
We have a stack of 5 teams at our disposal. Commands can be any: move forward, turn right / left, color the current cell in a given color and return to the beginning of the cycle.
Each team may or may not have a condition in the form of checking the color of the cell on which the arrow is located.
Is this at all possible to solve?
5b44aae2875af087570727.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Beloborodov, 2018-07-10
@Nidere

Maybe. Passed a couple of years ago, even took to study, but refused, because you need a lot of free time. Ideally not studying and not working

S
Sergey, 2018-07-10
@SuNbka

1. Move forward
2. If orange turn left
3. If green turn left
4. If blue move forward
5. F1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question