Franz Steinmetz - FranzlInventor CC6 - Simon My bot has four levers and only needs 2 touchsensors and motors: Green: Sensor 1 Yellow: Sensor 2 Blue: Sensor 1 and Sensor 2 White: Sensor 1 and Sensor 2 both half pressed Motor 1: Lifts Green and Yellow Motor 2: Lifts Blue and White The bot's mechanic is quite complicated (and for me even harder to explain in english than in german...): Every lever tranfers the power of a pressing on a second aid-lever, that again transfers the energy on layer, that is positioned over the two touchsensors: aid-lever ===o======= =======o=== ======o== ___o____o___ ==o====== lever _^_ .... _^_ | | | | | | | | |___| |___| o = axe Is Green or Yellow pressed, the layer looks about that (overstated): .___ / ___/ Is Blue or White pressed, the whole layer goes down. To distinguish between Blue and White, White can't be fully pressed down, because of two stoppers. The motor are among themselves. The lower one turnes a "sea-saw", that pulls two axles up or down and so lifts Blue and White. The upper one slides a slide, which lifts over an other part (don't know the name) Green and Yellow. Program: The programm generates randomly 40 tones (if you want also more), and stores them in 5 variables. To do this, I work with bits and bytes. For example is in binary the decimal "2" 0000 0010. Theoretically you could store 8 tones in a variable, but NQC only supports signed integers, so it would be more complicated (but possible!). One variable looks then about that: Binary: 1101 0010 Decimal: 210 A group of two binary digits (0 or 1) symbolizes one tone: 00 Green 01 Yellow 10 Blue 11 White (Dont't know if the allocations are correct) The display shows you the current number of memorized tones. When you fail, a deep sound is played. When the number is higher then the record, a short melody is played and the number blinks. When a row is completed, an upgoing sound is played. At the beginning of the program, you can define your record. I'm sure, I've forgotten to describe something, but I'm too tired to concentrate, so please ask :-)