/
index.html
129 lines (106 loc) · 3.44 KB
/
index.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Patrick M. - Logic Gates</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/style.css">
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Titillium+Web" rel="stylesheet">
</head>
<body class="py-3" style="background-color: #ccc;">
<div class="container-fluid">
<div class="row">
<div class="col px-2 text-center">
<h1>teaching (basic) logic gates w/ minecraft</h1>
</div>
<div class="col px-2">
<ol>
<li>i'm almost sure someone has done this before, but why not try and learn myself</li>
<li>logic gates were a real pain in the butt for me to learn</li>
<li>i can hopefully help others with this concept</li>
<li>minecraft can be immensely helpful in getting younger folk to interact</li>
</ol>
</div>
</div>
<div class="row my-5">
<div class="container text-center">
<p>with that being said, here's a key of all the logic gates i'll be using</p>
<br />
<p>note: i'll be using a LOT of <span tooltip="fake 'code' meant only to be understood, not to be syntax-correct" class="text-dark bg-warning" style="cursor: help;">pseudo-code</span></p>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="container">
<div class="row">
<div class="col px-0">
<img src="gates/not.png" class="px-2" height="275">
</div>
<div class="col px-0">
<p><strong>NOT Gate: </strong>inverts the input (on goes to off, off goes to on)</p>
<br />
<span class="lead">(pseudo)code example:</span>
<br />
<pre class="bg-secondary text-white p-1" style="font-size: 100%;">if input is on:
turn output off
if input is off:
turn output on</pre>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="container">
<div class="row">
<div class="col px-0">
<img src="gates/or.png" class="px-2" height="275">
</div>
<div class="col px-0">
<p><strong>OR Gate: </strong>if either or both inputs are on, output is on</p>
<br />
<span class="lead">(pseudo)code example:</span>
<br />
<pre class="bg-secondary text-white p-1" style="font-size: 100%;">if input A is on:
turn output on
if input B is on:
turn output on
if inputs A and B are on:
turn output on</pre>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="container">
<div class="row">
<div class="col px-0">
<img src="gates/and.png" class="px-2" height="275">
</div>
<div class="col px-0">
<p><strong>AND Gate: </strong>if both inputs are on, output is on</p>
<br />
<span class="lead">(pseudo)code example:</span>
<br />
<pre class="bg-secondary text-white p-1" style="font-size: 100%;">if input A is on:
turn output off
if input B is on:
turn output off
if inputs A and B are on:
turn output on</pre>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="container">
<h2>lesson #1</h2>
<br />
<p class="lead"></p>
</div>
</div>
</div>
</body>
</html>