Game instructions
-----------------

Translated and adapted from the MSX Computer Magazine #1.
Additional comments by MarMSX.

The program lamp is simple puzzle. A picture of the eighth street appears on the screen, where a new entrance lamp posts are lined up. In this computerized city you can turn the lights on or off. Then, your mission is to turn all the lamps on. Enter a digit corresponding to the number of the light pole.

There is a problem with the cabling, once you can only turn a lamp on or off when all other lamps to the left are off, except for the imediate left neighbor which must be on. For example, turn on lamp number 7, all other lights from left except 6 must be off.

Example:

1 2 3 4 5 6 7 8 9
X X X X X O X X X

By pressing 7:

1 2 3 4 5 6 7 8 9
X X X X X O O X X

Also, to turn a lamp off all the others must be off except the imediate left neighbor.

Example:

1 2 3 4 5 6 7 8 9
X X X X X O O X X

By pressing 7:

1 2 3 4 5 6 7 8 9
X X X X X O X X X

The lamp post #1, the leftmost, has no problem. Simply press the 1 button to operate this lamp.

It will be keep the number of turns it takes to illuminate the street.

--------------------------------------------------------------

Let's see the first movements for better understanding. The symbol "X" means light off whereas "O" means light on.

STEP 0:
1 2 3 4 5 6 7 8 9
X X X X X X X X X

STEP 1:
1 2 3 4 5 6 7 8 9
O X X X X X X X X

STEP 2:
1 2 3 4 5 6 7 8 9
O O X X X X X X X

STEP 3:
1 2 3 4 5 6 7 8 9
X O X X X X X X X
- To turn lamp #3 we must have all left lights off except #2

STEP 4:
1 2 3 4 5 6 7 8 9
X O O X X X X X X

STEP 5:
1 2 3 4 5 6 7 8 9
O O O X X X X X X
- I must turn on #1 to turn off #2.

STEP 6:
1 2 3 4 5 6 7 8 9
O X O X X X X X X

STEP 7:
1 2 3 4 5 6 7 8 9
X X O X X X X X X

STEP 8:
1 2 3 4 5 6 7 8 9
X X O O X X X X X

Good luck!
