How to use logic gates?
#8
Quote:is it possible to set up "IF statements" with wires?
Almost all useful logic circuits are conditional on their input, so yes as you can see most circuit as a conditional expression. Slight smile

Quote:You clone a monster to randomly press one of three buttons, each connects to a latch or otherwise connects to another button which you press, to open the door to the exit. [six buttons total]
I'm not quite sure what you mean with otherwise connects to another button.

Quote:Now if you clone another monster, and it presses a different button, it turns off the first latch and turns on the other one it went to.
You cannot turn on or of logic gates, however you can set their output to a high signal or a low one.

Quote:So now, chip can only pressed the latest button triggered to open the door.
Not a hundred percent sure what you are describing here.

But if I guess correctly, you either want three outputs, where two are set at random and Chip has to set the third signal to high to get to the exit, or you want one of three outputs set, if Chip triggers the corresponding event to a certain output, another one is chosen at random and Chip has to set a corresponding signal again to finish the level.

In the first case just connect both inputs of each of the latches to get a one time use too set a signal and connect their outputs with two and gates to have the condition all three have to be high.

If you tried to describe the second behavior, it's a bit trickier, since you have to reset the states (or duplicate the circuit). To do this, connect the inputs of the latches via or gates to get essentially a SR-latch. Now you have one input to set a state and one to reset it (as e.g. in the level SET AND RESET). The set connection has to be connected to your random events, the reset one should be triggered from an and gate which gets its signal from the corresponding output of the latch and the circuit Chip is triggering (e.g. a button). The same connection can trigger future events, as e.g. a second random set. To determine what should occur, use a counter, in case of just a few events, you can use the counter tile, otherwise to make the circuit more generally applicable, build a binary counter out of the gates... B)
Reply


Messages In This Thread
How to use logic gates? - by Flareon350 - 23-May-2016, 3:06 PM
How to use logic gates? - by _H_ - 23-May-2016, 4:42 PM
How to use logic gates? - by mobius - 23-May-2016, 4:43 PM
How to use logic gates? - by Joshua Bone - 23-May-2016, 6:07 PM
How to use logic gates? - by FelixNemis - 23-May-2016, 10:17 PM
How to use logic gates? - by Flareon350 - 23-May-2016, 10:49 PM
How to use logic gates? - by mobius - 24-May-2016, 4:58 PM
How to use logic gates? - by _H_ - 24-May-2016, 5:55 PM
How to use logic gates? - by FelixNemis - 24-May-2016, 6:06 PM
How to use logic gates? - by Eric119 - 24-May-2016, 6:26 PM
How to use logic gates? - by FelixNemis - 24-May-2016, 6:43 PM
How to use logic gates? - by mobius - 24-May-2016, 7:10 PM
How to use logic gates? - by FelixNemis - 24-May-2016, 10:20 PM
How to use logic gates? - by mobius - 30-May-2016, 4:14 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)