CREATING YOUR GAME WITH LOGICIf we want to use logic we should know our goal.
For example,we are going to make tea with teapot.We know its going to start boiling with heat.Any part that create fire can be used.Lets say our equipments are Generator,Filament and Teapot.If we want other users to play our game as we want we should use logic as needed.We want generarator to be used for electricity and that connected filament will boil the teapot.
Our goal:First generator is started working(signal started) we waiting it give the filament electricity then filamencer wil boil the tea and when its boiled(signal started) success will be seen.When this two object completed we want to see success.Therefore signal from teapot and signal from generator is enough.We should use "and" with this two signal to green level success light and since there is no way(without cheating)to break that order thats sufficient.However if user break that rule and without using that generator he use his own equipment to fastly make the goal we should make sure he is failed(Note that he wont be able to success if he use another tool,however we want him to fail if he try that way).Lets see how to do it.Firstly,if generator not start and teapot boils he should fail.Thats as its written if generator not started we should use not tool and that way we have ready signal at the output of not also from the teapot we have signal,now if we "and" them we have the desired output goes to the fail light.The following picture is used that logic;
