The BEFORE instruction

Zebra puzzles: Glossary of Programming Instructions

Make a vague comparison between two items a and b sharing a common ordered series.

This instruction is one of the few that cannot use Booleans; it requires a traditional resolution: returning to the statement several times. This is why this type of comparison is called vague. The common ordered series does not need to be regular.

Ordered series: A series containing values ​​that are all increasing or all decreasing.
Regular ordered series: An increasing or decreasing series whose values ​​are separated by the same interval.

Land Yachting Riddle

The 13-year-old trains for less time than the teenager in the blue tank.

 

Generally, with this instruction, there are few boxes to be cleared at the beginning of the puzzle: the teenager in the blue tank cannot train for 20 minutes, the 13-year-old cannot train for 1 hour and does not use the blue tank. You will therefore have to return to this instruction several times, as the puzzle progresses.

Designer

Choose two items a and b and an order relation D, such that D(a) < D(b).

If the instruction operates in isolated mode, the designer randomly chooses, for each item, a row (line or column) whose boxes are all empty (no true , no false , no booleans).

Maximum number of instruction executions.

Formal proposal generated

D: a < b
Duration: 13 years < Blue

a, b items belonging to two different series or to the same series.
D: common ordered series

Writing

We can obviously transform a < b into b > a!

The 13-year-old trains for less time than the teenager in the blue tank.
The teenager in the blue tank trains for longer than the 13-year-old.