thanks for the fast replies!
First of all, i program in english, but english is not my first language so i may not explain some of the things correctly.
Secondly, about the inputs and outputs: my inputs are 3 nxt buttons and 3 touch sensors, and every button is a number between 0~5, and the 4-digit code will be made according to the buttons\sensor i clicked on, for exemple, if left button=0 enter=1 right=2 touch1= 3 touch2=4 touch3=5, and i clicked: left -> enter -> touch1 -> touch3 the code will be: 0135
about the outputs the are 2 lamps that represent the 2 colors of pins, if the white lamp will flick twice, the player will know that he put 2 colors in the right place/
this was my plan, but i have not found a way to program the code input yet.
ill be happy for solution or other way to make this code.