Difference between revisions of "Hazzard/Logic"

From #openttdcoop wiki

Jump to: navigation, search
(Using new Logicgate template)
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
=== NOT Gate ===
 
=== NOT Gate ===
{{logicgate|name=Not Gate|image=haz_not.png|description=Not gates inverts the input from red to greed or vice-versa.|iotable=
+
{{logicgate|name=NOT Gate|image=haz_not.png|description=NOT gates inverts the input from red to greed or vice-versa.|iotable=
 
{{{!}}class="wikitable" style="text-align:center; width:100%;"
 
{{{!}}class="wikitable" style="text-align:center; width:100%;"
 
!Input!!Output
 
!Input!!Output
Line 10: Line 10:
 
!A!!O
 
!A!!O
 
{{!}}-
 
{{!}}-
{{!}}0{{!}}{{!}}1
+
{{!}}{{G}}{{!}}{{!}}{{R}}
 
{{!}}-
 
{{!}}-
{{!}}1{{!}}{{!}}0
+
{{!}}{{R}}{{!}}{{!}}{{G}}
 
{{!}}}
 
{{!}}}
 
}}
 
}}
 
=== AND Gate ===
 
=== AND Gate ===
{{logicgate|name=Not Gate|image=haz_not.png|description=Not gates inverts the input from red to greed or vice-versa.|iotable=
+
{{logicgate|name=AND Gate|image=haz_and.png|description=An AND gate will be red if both the inputs are red.|iotable=
 
{{{!}}class="wikitable" style="text-align:center; width:100%;"
 
{{{!}}class="wikitable" style="text-align:center; width:100%;"
 
!colspan="2"{{!}}Input!!Output
 
!colspan="2"{{!}}Input!!Output
Line 22: Line 22:
 
!A!!B!!O
 
!A!!B!!O
 
{{!}}-
 
{{!}}-
{{!}}0{{!}}{{!}}0{{!}}{{!}}0
+
{{!}}{{G}}{{!}}{{!}}{{G}}{{!}}{{!}}{{G}}
 
{{!}}-
 
{{!}}-
{{!}}0{{!}}{{!}}1{{!}}{{!}}0
+
{{!}}{{G}}{{!}}{{!}}{{R}}{{!}}{{!}}{{G}}
 
{{!}}-
 
{{!}}-
{{!}}1{{!}}{{!}}0{{!}}{{!}}0
+
{{!}}{{R}}{{!}}{{!}}{{G}}{{!}}{{!}}{{G}}
 
{{!}}-
 
{{!}}-
{{!}}1{{!}}{{!}}1{{!}}{{!}}1
+
{{!}}{{R}}{{!}}{{!}}{{R}}{{!}}{{!}}{{R}}
 
{{!}}}
 
{{!}}}
 
}}
 
}}

Latest revision as of 03:46, 17 March 2014

See also: Logic

Gates

NOT Gate

NOT Gate
Haz not.png
NOT gates inverts the input from red to greed or vice-versa.
Absolute-Red Dependent No
IO Table
Input Output
A O
Green Red
Red Green

AND Gate

AND Gate
Haz and.png
An AND gate will be red if both the inputs are red.
Absolute-Red Dependent No
IO Table
Input Output
A B O
Green Green Green
Green Red Green
Red Green Green
Red Red Red
Powered by MediaWiki
  • This page was last modified on 17 March 2014, at 03:46.