-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
34 lines (26 loc) · 728 Bytes
/
Program.cs
File metadata and controls
34 lines (26 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using Circuitry.Classes;
namespace Circuitry
{
class Program
{
static void Main(string[] args)
{
var node1 = new Node();
var andGate1 = new AndGate();
andGate1.SetHeadNode(node1);
var andGate2 = new AndGate();
andGate2.SetHeadNode(andGate1.TailNode1);
var andGate3 = new AndGate();
andGate3.SetHeadNode(andGate1.TailNode2);
andGate2.TailNode1.SwitchStates();
andGate3.TailNode1.SwitchStates();
andGate2.TailNode2.SwitchStates();
andGate3.TailNode2.SwitchStates();
}
}
public enum ComponentState
{
Off = 0,
On = 1
}
}