Fatal Error · Extreme AgenticFree
Nobody Can Play It
A brass organ turns marbles from one colour pattern to another, but its six glass chambers lost their labels, and each plays backwards every other time. An apprentice's notebook survives. Play twenty marble orders cheaply.
Work out the rules from the log, then play all twenty orders with as few credits as possible.
Score = 1000 per order done − credits spent. Resetting every chamber before each order earns 0 points; our cheapest route, order by order, earns 100, in a straight line between.
C L N. Next L log lines, starting from all modes 0: probe k a b c a2 b2 c2 (chamber k turned (a, b, c) into (a2, b2, c2)) or reset k.N lines: a b c a2 b2 c2, an order's marble and the marble wanted.N lines, one per order: the chamber numbers to use and rK to reset chamber K, in turn; - for an order you skip.C = 6, N = 20, values 0 to 7, all sums mod 8. The orders start with all modes 0; 500 credits in all.3 12 4 probe 3 4 6 5 4 6 1 reset 3 probe 1 0 6 2 0 2 2 probe 2 5 6 4 3 6 4 probe 3 2 2 2 2 2 0 probe 3 7 4 5 7 4 4 probe 3 7 6 3 7 6 4 probe 2 4 7 2 5 7 2 probe 1 5 1 1 5 5 1 probe 2 5 4 5 1 4 5 probe 3 4 5 1 4 5 5 reset 2 7 3 3 2 3 3 1 2 6 1 6 6 2 2 1 4 6 1 5 4 0 1 0 3
2 1 1 2 3 2 1
Sign in to play. It is free.
Sign in