Level/NAND Gate: Difference between revisions

From Turing Complete
(Added infobox)
(Text values in truth table)
 
Line 6: Line 6:
| unlocks-level1      = NOT Gate
| unlocks-level1      = NOT Gate
| unlocks-component1  = NAND
| unlocks-component1  = NAND
| scored              = No
| highscore          =
| api-enum-id        = nand_gate
| api-enum-number    = 3
}}
}}


Line 15: Line 19:
! Input One !! Input Two !! Output
! Input One !! Input Two !! Output
|-
|-
| {{Off}}|| {{Off}}|| {{On}}
| {{Off t}}|| {{Off t}}|| {{On t}}
|-
|-
| {{Off}}|| {{On}}|| {{On}}
| {{Off t}}|| {{On t}}|| {{On t}}
|-
|-
| {{On}}|| {{Off}}|| {{On}}
| {{On t}}|| {{Off t}}|| {{On t}}
|-
|-
| {{On}}|| {{On}}|| {{Off}}
| {{On t}}|| {{On t}}|| {{Off t}}
|}
|}



Latest revision as of 20:29, 17 November 2023

Section Basic Logic
Type Component
Prerequisite Crude Awakening
Unlocks NOT Gate
NAND
Scored No
API nand_gate (3)

Time for the first level with an actual logic gate. This level asks you to figure out the behavior of the NAND gate.

NAND Gate Truth Table
Input One Input Two Output
0 0 1
0 1 1
1 0 1
1 1 0

As the truth table shows, a NAND gate returns true unless both inputs are true, then it returns false. So set the result accordingly and press the verify button.