Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / games / logicgate / src / main / res / values / strings.xml

strings.xml546 lines · 60.4 KiBRaw
1<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
2 <!-- Launcher + app bar: App name. Proper noun, title of the logic gate puzzle game -->
3 <string name="app_name" translatable="false">Logic Gate</string>
4
5 <!-- Level map: tagline under the title. Sentence -->
6 <string name="lg_tagline">Start with NAND. End with a computer.</string>
7 <!-- Level map: progress line. %1$d = solved levels e.g. 5, %2$d = total e.g. 28 -->
8 <string name="lg_solved_count">Solved: <xliff:g id="solved" example="5">%1$d</xliff:g> / <xliff:g id="total" example="28">%2$d</xliff:g></string>
9 <!-- Level map: chapter 1 heading. Noun -->
10 <string name="lg_chapter_basics">Basics</string>
11 <!-- Level map: chapter 2 heading. Noun phrase -->
12 <string name="lg_chapter_routing">Routing &amp; buses</string>
13 <!-- Level map: chapter 3 heading. Noun -->
14 <string name="lg_chapter_arithmetic">Arithmetic</string>
15 <!-- Level map: chapter 4 heading. Noun -->
16 <string name="lg_chapter_memory">Memory</string>
17 <!-- Level map: chapter 5 heading. Noun, the processor -->
18 <string name="lg_chapter_cpu">CPU</string>
19 <!-- Level map: chapter 1 subtitle. Noun phrase -->
20 <string name="lg_chapter_basics_desc">Every gate, from NAND alone</string>
21 <!-- Level map: chapter 2 subtitle. Noun phrase -->
22 <string name="lg_chapter_routing_desc">Selectors, decoders and multi-bit buses</string>
23 <!-- Level map: chapter 3 subtitle. Noun phrase -->
24 <string name="lg_chapter_arithmetic_desc">Adders, all the way up to an ALU</string>
25 <!-- Level map: chapter 4 subtitle. Noun phrase -->
26 <string name="lg_chapter_memory_desc">Latches, registers, a program counter and RAM</string>
27 <!-- Level map: chapter 5 subtitle. Noun phrase -->
28 <string name="lg_chapter_cpu_desc">A stored-program computer that runs real code</string>
29 <!-- Level card: best score. %1$d = best NAND cost e.g. 12, %2$d = par e.g. 9 -->
30 <string name="lg_best_cost">Best <xliff:g id="best" example="12">%1$d</xliff:g> · par <xliff:g id="par" example="9">%2$d</xliff:g></string>
31 <!-- Level card: target score before solving. %1$d = par NAND cost e.g. 9 -->
32 <string name="lg_par">Par <xliff:g id="par" example="9">%1$d</xliff:g></string>
33 <!-- Level card: accessibility label for a locked level. Adjective -->
34 <string name="lg_cd_locked">Locked</string>
35 <!-- Level card: accessibility label for the star rating. %1$d = stars earned 0..3 -->
36 <string name="lg_cd_stars"><xliff:g id="stars" example="2">%1$d</xliff:g> of 3 stars</string>
37
38 <!-- Editor app bar: title. %1$d = level number e.g. 5, %2$s = level name e.g. XOR -->
39 <string name="lg_level_title"><xliff:g id="number" example="5">%1$d</xliff:g> · <xliff:g id="name" example="XOR">%2$s</xliff:g></string>
40 <!-- Editor app bar: current circuit cost. %1$d = NAND count e.g. 12 -->
41 <string name="lg_cost"><xliff:g id="cost" example="12">%1$d</xliff:g> NAND</string>
42
43 <!-- Chip tray: accessibility label for a chip card. %1$s = chip name e.g. NAND, %2$d = cost e.g. 1 -->
44 <string name="lg_cd_chip"><xliff:g id="chip" example="NAND">%1$s</xliff:g>, costs <xliff:g id="cost" example="1">%2$d</xliff:g> NAND. Tap for details, or drag it up onto the board.</string>
45 <!-- Chip tray: badge for a chip with multi-bit pins. %1$d = widest bus width e.g. 8 -->
46 <string name="lg_bus_badge"><xliff:g id="width" example="8">%1$d</xliff:g>-bit</string>
47 <!-- Chip info sheet: primary action placing the chip in the middle of the board. Verb phrase -->
48 <string name="lg_add_to_board">Add to board</string>
49
50 <!-- Trash zone: shown over the chip tray while a gate is being dragged. Instruction -->
51 <string name="lg_drag_to_delete">Drag here to delete</string>
52 <!-- Trash zone: shown while a dragged gate is over the chip tray. Instruction -->
53 <string name="lg_release_to_delete">Release to delete</string>
54 <!-- Selection bar: label when a wire is selected. Noun -->
55 <string name="lg_selected_wire">Wire</string>
56 <!-- Selection bar: delete the selected gate or wire. Verb -->
57 <string name="lg_delete">Delete</string>
58
59 <!-- Test panel: shown while the circuit is being verified. Verb progressive -->
60 <string name="lg_checking">Checking…</string>
61 <!-- Test panel: all tests pass. %1$d = passing rows, %2$d = total rows -->
62 <string name="lg_tests_pass">✓ Passing: <xliff:g id="passed" example="4">%1$d</xliff:g>/<xliff:g id="total" example="4">%2$d</xliff:g></string>
63 <!-- Test panel: some tests fail. %1$d = passing rows, %2$d = total rows, %3$s = title of the first failing row, e.g. 1 OR 1 = 1 -->
64 <string name="lg_tests_fail">✗ <xliff:g id="passed" example="3">%1$d</xliff:g>/<xliff:g id="total" example="4">%2$d</xliff:g> · first failure: <xliff:g id="row" example="1 OR 1 = 1">%3$s</xliff:g></string>
65 <!-- Test panel: a combinational feedback loop oscillates. Sentence -->
66 <string name="lg_oscillating">A feedback loop never settles; it is outlined in red.</string>
67 <!-- Test panel: the computer level has no RAM16 chip. Sentence -->
68 <string name="lg_no_ram">Add a RAM16: the test programs are loaded into it.</string>
69 <!-- Test panel: column header for the row description. Short noun -->
70 <string name="lg_col_test">test</string>
71 <!-- Test panel: column header for actual outputs. Short noun -->
72 <string name="lg_col_got">got</string>
73 <!-- Test panel: sequential stepping position. %1$d = tick number e.g. 3, %2$s = what the tick checks, e.g. q=1, hold -->
74 <string name="lg_tick">Tick <xliff:g id="tick" example="3">%1$d</xliff:g>: <xliff:g id="title" example="q=1, hold">%2$s</xliff:g></string>
75 <!-- Test panel: explains probing. Sentence -->
76 <string name="lg_probe_hint">Tap a row to show its values on the wires.</string>
77 <!-- Test panel: explains live mode with no row selected. Sentence -->
78 <string name="lg_live_hint">Live: tap an input on the board to flip it.</string>
79 <!-- Test panel: button returning from a probed row to live mode. Verb phrase -->
80 <string name="lg_back_to_live">Back to live</string>
81
82 <!-- Brief sheet: section heading. Noun -->
83 <string name="lg_brief_inputs">Inputs</string>
84 <!-- Brief sheet: section heading. Noun -->
85 <string name="lg_brief_outputs">Outputs</string>
86 <!-- Brief sheet: a pin with its bus width. %1$s = pin name e.g. a, %2$d = width e.g. 8 -->
87 <string name="lg_pin_width"><xliff:g id="pin" example="a">%1$s</xliff:g> (<xliff:g id="width" example="8">%2$d</xliff:g>-bit)</string>
88 <!-- Brief sheet: shown for a level without inputs. Noun phrase -->
89 <string name="lg_brief_none">none</string>
90 <!-- Brief sheet: reveal the hint. Verb phrase -->
91 <string name="lg_show_hint">Show hint</string>
92 <!-- Brief sheet: reward line. %1$s = comma separated chip names e.g. XOR -->
93 <string name="lg_brief_unlocks">Solve it to earn: <xliff:g id="chips" example="XOR">%1$s</xliff:g></string>
94 <!-- Brief sheet: how to use the editor. Sentence -->
95 <string name="lg_brief_controls">Drag a chip up out of the tray to place it, and drag a gate back down onto the tray to delete it. Drag from a pin to wire it up. Drag empty space to pan and pinch to zoom. Bus values show in hex.</string>
96 <!-- Brief sheet: close button. Verb phrase -->
97 <string name="lg_start_building">Start building</string>
98
99 <!-- Bus input dialog: title. %1$s = input pin name e.g. a -->
100 <string name="lg_set_value">Set <xliff:g id="pin" example="a">%1$s</xliff:g></string>
101 <!-- Bus input dialog: confirm. Verb -->
102 <string name="lg_done">Done</string>
103
104 <!-- Wire error: both ends are inputs or both are outputs. Sentence -->
105 <string name="lg_wire_same_side">Wires run from an output pin to an input pin.</string>
106 <!-- Wire error: bus widths differ, with a fix. %1$d = source width, %2$d = target width, %3$s = chip name e.g. SPLIT 8 -->
107 <string name="lg_wire_width"><xliff:g id="from" example="8">%1$d</xliff:g>-bit → <xliff:g id="to" example="1">%2$d</xliff:g>-bit: add a <xliff:g id="chip" example="SPLIT 8">%3$s</xliff:g></string>
108
109 <!-- Level complete overlay: title. Short exclamation -->
110 <string name="lg_solved_title">Circuit verified!</string>
111 <!-- Level complete overlay: title for the final level. Exclamation -->
112 <string name="lg_computer_title">You built a computer!</string>
113 <!-- Level complete overlay: score line. %1$d = cost e.g. 12, %2$d = par e.g. 9 -->
114 <string name="lg_cost_vs_par">Cost <xliff:g id="cost" example="12">%1$d</xliff:g> NAND · par <xliff:g id="par" example="9">%2$d</xliff:g></string>
115 <!-- Level complete overlay: reward line. %1$s = chip names e.g. XOR -->
116 <string name="lg_new_chips">New chips: <xliff:g id="chips" example="XOR">%1$s</xliff:g></string>
117 <!-- Level complete overlay: primary action. Verb phrase -->
118 <string name="lg_next_level">Next level</string>
119 <!-- Level complete overlay: dismiss and stay in the editor. Verb phrase -->
120 <string name="lg_keep_editing">Keep editing</string>
121
122 <!-- Level titles, briefs and hints. Briefs and hints are written for a teenage reader: full, plain sentences. Keep pin names (like a, b, s, q, op) as they are, and write chip names exactly as you translated them in the lg_chip_*_label strings. -->
123 <!-- Level map and brief sheet: title of the level that builds this chip. Same text as the chip name -->
124 <string name="lg_level_not_title" translatable="false">@string/lg_chip_not_label</string>
125 <!-- Brief sheet: goal of the "NOT" level. Sentences -->
126 <string name="lg_level_not_brief">In this game, you build everything out of NAND gates. A NAND outputs 0 only when both of its inputs are 1. For this level, make the output o the opposite of the input a.</string>
127 <!-- Brief sheet: hint for the "NOT" level, shown on request. Sentences -->
128 <string name="lg_level_not_hint">Connect a to both inputs of a single NAND. Think about what it outputs when a is 0 and when a is 1.</string>
129 <!-- Level map and brief sheet: title of the level that builds this chip. Same text as the chip name -->
130 <string name="lg_level_and_title" translatable="false">@string/lg_chip_and_label</string>
131 <!-- Brief sheet: goal of the "AND" level. Sentences -->
132 <string name="lg_level_and_brief">Make o equal to 1 only when a and b are both 1. If either input is 0, o should be 0.</string>
133 <!-- Brief sheet: hint for the "AND" level, shown on request. Sentences -->
134 <string name="lg_level_and_hint">NAND means \"NOT AND\": it gives the opposite of AND. Flip a NAND\'s output back with a NOT.</string>
135 <!-- Level map and brief sheet: title of the level that builds this chip. Same text as the chip name -->
136 <string name="lg_level_or_title" translatable="false">@string/lg_chip_or_label</string>
137 <!-- Brief sheet: goal of the "OR" level. Sentences -->
138 <string name="lg_level_or_brief">Make o equal to 1 when a is 1, when b is 1, or when both are 1. It should be 0 only when both are 0.</string>
139 <!-- Brief sheet: hint for the "OR" level, shown on request. Sentences -->
140 <string name="lg_level_or_hint">Flip a and b with a NOT each, then feed both flipped values into a NAND. The NAND outputs 0 only when both flipped values are 1, which means a and b were both 0.</string>
141 <!-- Level map and brief sheet: title of the level that builds this chip. Same text as the chip name -->
142 <string name="lg_level_nor_title" translatable="false">@string/lg_chip_nor_label</string>
143 <!-- Brief sheet: goal of the "NOR" level. Sentences -->
144 <string name="lg_level_nor_brief">Make o equal to 1 only when a and b are both 0. If either input is 1, o should be 0.</string>
145 <!-- Brief sheet: hint for the "NOR" level, shown on request. Sentences -->
146 <string name="lg_level_nor_hint">This is the opposite of OR, so put a NOT after an OR.</string>
147 <!-- Level map and brief sheet: title of the level that builds this chip. Same text as the chip name -->
148 <string name="lg_level_xor_title" translatable="false">@string/lg_chip_xor_label</string>
149 <!-- Brief sheet: goal of the "XOR" level. Sentences -->
150 <string name="lg_level_xor_brief">Make o equal to 1 when a and b are different, and 0 when they are the same.</string>
151 <!-- Brief sheet: hint for the "XOR" level, shown on request. Sentences -->
152 <string name="lg_level_xor_hint">You can do this with four NANDs. Feed a and b into the first NAND. Feed the first NAND\'s output and a into a second NAND, and feed the first NAND\'s output and b into a third NAND. Finally, feed the outputs of the second and third NANDs into a fourth NAND.</string>
153 <!-- Level map and brief sheet: title of the level that builds this chip. Same text as the chip name -->
154 <string name="lg_level_xnor_title" translatable="false">@string/lg_chip_xnor_label</string>
155 <!-- Brief sheet: goal of the "XNOR" level. Sentences -->
156 <string name="lg_level_xnor_brief">Make o equal to 1 when a and b are the same, and 0 when they are different.</string>
157 <!-- Brief sheet: hint for the "XNOR" level, shown on request. Sentences -->
158 <string name="lg_level_xnor_hint">This is the opposite of XOR, so put a NOT after an XOR.</string>
159 <!-- Level map and brief sheet: title of the level that builds this chip. Same text as the chip name -->
160 <string name="lg_level_mux_title" translatable="false">@string/lg_chip_mux_label</string>
161 <!-- Brief sheet: goal of the "MUX" level. Sentences -->
162 <string name="lg_level_mux_brief">A MUX chooses between two inputs. When the select input s is 0, the output o should copy a. When s is 1, o should copy b.</string>
163 <!-- Brief sheet: hint for the "MUX" level, shown on request. Sentences -->
164 <string name="lg_level_mux_hint">AND a with NOT s, so it only gets through when s is 0. AND b with s, so it only gets through when s is 1. Then OR the two results together. Built straight from NANDs, it takes only four gates.</string>
165 <!-- Level map and brief sheet: title of the level that builds this chip. Same text as the chip name -->
166 <string name="lg_level_dmux_title" translatable="false">@string/lg_chip_dmux_label</string>
167 <!-- Brief sheet: goal of the "DMUX" level. Sentences -->
168 <string name="lg_level_dmux_brief">A DMUX sends one input to one of two outputs. When s is 0, the value of in should go to a. When s is 1, it should go to b. The output that is not chosen should stay 0.</string>
169 <!-- Brief sheet: hint for the "DMUX" level, shown on request. Sentences -->
170 <string name="lg_level_dmux_hint">Output a is in AND NOT s. Output b is in AND s.</string>
171 <!-- Level map and brief sheet: title of the "Decoder" level. Short noun phrase -->
172 <string name="lg_level_dec2_title">Decoder</string>
173 <!-- Brief sheet: goal of the "Decoder" level. Sentences -->
174 <string name="lg_level_dec2_brief">Read s1 and s0 as a two-bit number from 0 to 3, with s1 as the high bit. Turn on the output with that number (y0, y1, y2 or y3) and keep the other three at 0. For example, s1 = 1 and s0 = 0 is the number 2, so only y2 should be 1.</string>
175 <!-- Brief sheet: hint for the "Decoder" level, shown on request. Sentences -->
176 <string name="lg_level_dec2_hint">Each output needs its own AND gate. For y0, AND together NOT s1 and NOT s0. For y3, AND together s1 and s0. Work out y1 and y2 the same way.</string>
177 <!-- Level map and brief sheet: title of the "Nibble swap" level. Short noun phrase -->
178 <string name="lg_level_nibble_swap_title">Nibble swap</string>
179 <!-- Brief sheet: goal of the "Nibble swap" level. Sentences -->
180 <string name="lg_level_nibble_swap_brief">Thick wires are called buses, and they carry 4 or 8 bits at once. The input x is a byte (8 bits). Split it into its low 4 bits and its high 4 bits, then swap them, so the low half of x becomes the high half of y and the high half of x becomes the low half of y.</string>
181 <!-- Brief sheet: hint for the "Nibble swap" level, shown on request. Sentences -->
182 <string name="lg_level_nibble_swap_hint">A NIB SPLIT breaks x into its two halves. Connect them to a NIB JOIN the other way round.</string>
183 <!-- Level map and brief sheet: title of the "Bus MUX" level. Short noun phrase -->
184 <string name="lg_level_bus_mux_title">Bus MUX</string>
185 <!-- Brief sheet: goal of the "Bus MUX" level. Sentences -->
186 <string name="lg_level_bus_mux_brief">Build a MUX that chooses between two whole bytes. When s is 0, o should copy all 8 bits of a, and when s is 1, o should copy all 8 bits of b. This level takes some repetitive wiring, but once you solve it, you get bus versions of NOT, AND, OR, XOR and MUX for free.</string>
187 <!-- Brief sheet: hint for the "Bus MUX" level, shown on request. Sentences -->
188 <string name="lg_level_bus_mux_hint">Split a and b into separate bits. Use eight MUXes, one for each bit position, all sharing the same s. Then join their outputs back into one bus.</string>
189 <!-- Level map and brief sheet: title of the "Half adder" level. Short noun phrase -->
190 <string name="lg_level_half_adder_title">Half adder</string>
191 <!-- Brief sheet: goal of the "Half adder" level. Sentences -->
192 <string name="lg_level_half_adder_brief">Add two bits, a and b. The sum bit s should be 1 when exactly one input is 1. The carry c should be 1 when both inputs are 1, because 1 + 1 = 2, which is written 10 in binary.</string>
193 <!-- Brief sheet: hint for the "Half adder" level, shown on request. Sentences -->
194 <string name="lg_level_half_adder_hint">The sum s is a XOR b, and the carry c is a AND b. To save gates, notice that the first NAND inside your XOR already gives NOT c, so c needs only one more NOT.</string>
195 <!-- Level map and brief sheet: title of the "Full adder" level. Short noun phrase -->
196 <string name="lg_level_full_adder_title">Full adder</string>
197 <!-- Brief sheet: goal of the "Full adder" level. Sentences -->
198 <string name="lg_level_full_adder_brief">Add three bits: a, b and a carry in, cin, which comes from the column to the right. The output s is the sum bit, and cout is the carry that passes to the next column on the left.</string>
199 <!-- Brief sheet: hint for the "Full adder" level, shown on request. Sentences -->
200 <string name="lg_level_full_adder_hint">Use two half adders. The first adds a and b, and the second adds that sum to cin. cout should be 1 if either half adder made a carry, so OR their two carries together. The best known solution uses only nine NANDs.</string>
201 <!-- Level map and brief sheet: title of the "4-bit adder" level. Short noun phrase -->
202 <string name="lg_level_add4_title">4-bit adder</string>
203 <!-- Brief sheet: goal of the "4-bit adder" level. Sentences -->
204 <string name="lg_level_add4_brief">Add the two 4-bit numbers a and b, plus the carry in cin. The output s is the 4-bit sum. If the total is bigger than 15, it does not fit in 4 bits, so cout should be 1 and s should keep only the low 4 bits.</string>
205 <!-- Brief sheet: hint for the "4-bit adder" level, shown on request. Sentences -->
206 <string name="lg_level_add4_hint">Split a and b into bits and use one full adder per bit, starting from the lowest bit. Connect each adder\'s cout to the next adder\'s cin, then join the four sum bits back together into s.</string>
207 <!-- Level map and brief sheet: title of the "8-bit adder" level. Short noun phrase -->
208 <string name="lg_level_add8_title">8-bit adder</string>
209 <!-- Brief sheet: goal of the "8-bit adder" level. Sentences -->
210 <string name="lg_level_add8_brief">Add the two bytes a and b, plus the carry in cin. The output s is the 8-bit sum. If the total is bigger than 255, it does not fit in 8 bits, so cout should be 1 and s should keep only the low 8 bits.</string>
211 <!-- Brief sheet: hint for the "8-bit adder" level, shown on request. Sentences -->
212 <string name="lg_level_add8_hint">Use two ADD4s: one for the low 4 bits and one for the high 4 bits. Split the inputs with NIB SPLITs, connect the low adder\'s cout to the high adder\'s cin, and join the two sums with a NIB JOIN.</string>
213 <!-- Level map and brief sheet: title of the "Incrementer" level. Short noun phrase -->
214 <string name="lg_level_inc4_title">Incrementer</string>
215 <!-- Brief sheet: goal of the "Incrementer" level. Sentences -->
216 <string name="lg_level_inc4_brief">Make o equal to a + 1. Because o only has 4 bits, 15 + 1 should wrap back around to 0.</string>
217 <!-- Brief sheet: hint for the "Incrementer" level, shown on request. Sentences -->
218 <string name="lg_level_inc4_hint">The lowest bit always flips, so it only needs a NOT. Each higher bit goes into a half adder together with the carry from the bit below it.</string>
219 <!-- Level map and brief sheet: title of the "Subtractor" level. Short noun phrase -->
220 <string name="lg_level_sub8_title">Subtractor</string>
221 <!-- Brief sheet: goal of the "Subtractor" level. Sentences -->
222 <string name="lg_level_sub8_brief">Make d equal to a − b. If the answer would go below zero, it should wrap around from the top, so 0 − 1 gives 255.</string>
223 <!-- Brief sheet: hint for the "Subtractor" level, shown on request. Sentences -->
224 <string name="lg_level_sub8_hint">Computers subtract by adding. Flipping every bit of b and then adding 1 gives the same result as subtracting b (this trick is called two\'s complement). So add a to NOT b, and supply the extra 1 through the adder\'s carry in.</string>
225 <!-- Level map and brief sheet: title of the "Zero test" level. Short noun phrase -->
226 <string name="lg_level_zero8_title">Zero test</string>
227 <!-- Brief sheet: goal of the "Zero test" level. Sentences -->
228 <string name="lg_level_zero8_brief">Make z equal to 1 when every bit of a is 0, which means a is the number zero. If any bit of a is 1, z should be 0.</string>
229 <!-- Brief sheet: hint for the "Zero test" level, shown on request. Sentences -->
230 <string name="lg_level_zero8_hint">OR all eight bits together, then put a NOT after the result.</string>
231 <!-- Level map and brief sheet: title of the "ALU" level. Short noun phrase -->
232 <string name="lg_level_alu8_title">ALU</string>
233 <!-- Brief sheet: goal of the "ALU" level. Sentences -->
234 <string name="lg_level_alu8_brief">An ALU (arithmetic logic unit) is the part of a CPU that does the math. The inputs op1 and op0 choose what it does with a and b:\n• 00: add a and b.\n• 01: subtract b from a.\n• 10: AND each pair of bits in a and b.\n• 11: pass b through unchanged.\nThe output o is the result, and z should be 1 when o is 0.</string>
235 <!-- Brief sheet: hint for the "ALU" level, shown on request. Sentences -->
236 <string name="lg_level_alu8_hint">Subtracting b is the same as adding NOT b with the carry in set to 1. If you XOR each bit of b with op0, b gets flipped only when op0 is 1, and op0 can also be the carry in. Then use MUXes to choose between the adder\'s result, a AND b, and b.</string>
237 <!-- Level map and brief sheet: title of the "SR latch" level. Short noun phrase -->
238 <string name="lg_level_sr_latch_title">SR latch</string>
239 <!-- Brief sheet: goal of the "SR latch" level. Sentences -->
240 <string name="lg_level_sr_latch_brief">This circuit remembers one bit by feeding its outputs back into itself. Setting s to 1 sets q to 1, and setting r to 1 resets q to 0. When s and r are both 0, q keeps whatever value it had. The second output, nq, is always the opposite of q.</string>
241 <!-- Brief sheet: hint for the "SR latch" level, shown on request. Sentences -->
242 <string name="lg_level_sr_latch_hint">Use two NORs, and wire each one\'s output into one of the other\'s inputs. Connect r to the NOR that makes q, and s to the NOR that makes nq.</string>
243 <!-- Level map and brief sheet: title of the "D latch" level. Short noun phrase -->
244 <string name="lg_level_d_latch_title">D latch</string>
245 <!-- Brief sheet: goal of the "D latch" level. Sentences -->
246 <string name="lg_level_d_latch_brief">While en (enable) is 1, q should copy d. When en goes to 0, q should keep the last value it had, no matter what d does.</string>
247 <!-- Brief sheet: hint for the "D latch" level, shown on request. Sentences -->
248 <string name="lg_level_d_latch_hint">Start with an SR latch. Set it when en is 1 and d is 1, and reset it when en is 1 and d is 0.</string>
249 <!-- Level map and brief sheet: title of the "1-bit register" level. Short noun phrase -->
250 <string name="lg_level_bit_title">1-bit register</string>
251 <!-- Brief sheet: goal of the "1-bit register" level. Sentences -->
252 <string name="lg_level_bit_brief">A DFF stores its input on every tick, whether you want it to or not. Build a 1-bit register that stores d only on ticks when load is 1, and keeps its old bit when load is 0. The output q should always show the stored bit.</string>
253 <!-- Brief sheet: hint for the "1-bit register" level, shown on request. Sentences -->
254 <string name="lg_level_bit_hint">Put a MUX in front of the DFF. When load is 1, the MUX should pass d through. When load is 0, it should pass the DFF\'s own output back in, so the DFF stores the same bit again.</string>
255 <!-- Level map and brief sheet: title of the "8-bit register" level. Short noun phrase -->
256 <string name="lg_level_reg8_title">8-bit register</string>
257 <!-- Brief sheet: goal of the "8-bit register" level. Sentences -->
258 <string name="lg_level_reg8_brief">Build the same thing as the 1-bit register, but for a whole byte. On each tick, if load is 1, store the byte on d. If load is 0, keep the byte that is already stored. The output q should always show the stored byte.</string>
259 <!-- Brief sheet: hint for the "8-bit register" level, shown on request. Sentences -->
260 <string name="lg_level_reg8_hint">Put a MUX8b in front of a DFF8, the same way you used a MUX and a DFF for the 1-bit register.</string>
261 <!-- Level map and brief sheet: title of the "Program counter" level. Short noun phrase -->
262 <string name="lg_level_pc4_title">Program counter</string>
263 <!-- Brief sheet: goal of the "Program counter" level. Sentences -->
264 <string name="lg_level_pc4_brief">A program counter keeps track of which instruction a CPU runs next. On each tick, it should do one of three things:\n• If load is 1, jump to the number on v.\n• Otherwise, if en is 1, count up by one, wrapping from 15 back to 0.\n• Otherwise, keep the same number.\nThe output pc always shows the current count.</string>
265 <!-- Brief sheet: hint for the "Program counter" level, shown on request. Sentences -->
266 <string name="lg_level_pc4_hint">Store the count in a DFF4, and use an INC4 to work out the count plus one. Then use two MUX4bs to choose what the DFF4 stores next. The first uses en to choose between the current count and the count plus one. The second uses load to choose between that result and v.</string>
267 <!-- Level map and brief sheet: title of the "RAM" level. Short noun phrase -->
268 <string name="lg_level_ram4_title">RAM</string>
269 <!-- Brief sheet: goal of the "RAM" level. Sentences -->
270 <string name="lg_level_ram4_brief">Build four bytes of memory, numbered 0 to 3. The inputs a1 and a0 form the address of one byte, with a1 as the high bit, and dout should always show the byte at that address. On each tick, if we (write enable) is 1, the byte on din should be saved at that address.</string>
271 <!-- Brief sheet: hint for the "RAM" level, shown on request. Sentences -->
272 <string name="lg_level_ram4_hint">Use one REG8 for each byte. A DEC2 turns the address into four lines, one per register, so AND each line with we to decide which register loads. To read, use MUX8bs to pick the register that matches the address.</string>
273 <!-- Level map and brief sheet: title of the "Instruction decoder" level. Short noun phrase -->
274 <string name="lg_level_decoder_title">Instruction decoder</string>
275 <!-- Brief sheet: goal of the "Instruction decoder" level. Sentences -->
276 <string name="lg_level_decoder_brief">The instruction decoder looks at an instruction and decides which parts of the CPU should act. The CPU works on one number at a time, kept in a register called the accumulator.\nThe input op is the instruction number from 0 to 7 (op has 4 bits, but the top one is unused):\n• 0 LDA: load a byte from memory into the accumulator.\n• 1 STA: store the accumulator into memory.\n• 2 ADD: add a byte from memory to the accumulator.\n• 3 SUB: subtract a byte from memory from the accumulator.\n• 4 LDI: load the number written inside the instruction into the accumulator.\n• 5 JMP: jump to a different instruction.\n• 6 JZ: jump only if the accumulator is zero, which is when z is 1.\n• 7 HLT: stop the program.\nSet the outputs like this:\n• aluOp1 and aluOp0 choose the ALU operation: 00 (add) for ADD, 01 (subtract) for SUB, and 11 (pass b through) for LDA and LDI. They are only checked when accLoad is 1.\n• accLoad is 1 for LDA, ADD, SUB and LDI, so the ALU\'s result is stored in the accumulator.\n• memWrite is 1 for STA, so the accumulator is written to memory.\n• useImm is 1 for LDI, so the ALU uses the number inside the instruction instead of a byte from memory.\n• jump is 1 for JMP, and for JZ only when z is 1.\n• halt is 1 for HLT.</string>
277 <!-- Brief sheet: hint for the "Instruction decoder" level, shown on request. Sentences -->
278 <string name="lg_level_decoder_hint">Split op into bits and ignore the top one. Turn the other three bits into eight separate lines, one for each instruction, like a bigger version of a DEC2. Then each output is an OR of the lines for the instructions that need it.</string>
279 <!-- Level map and brief sheet: title of the level that builds this chip. Same text as the chip name -->
280 <string name="lg_level_cpu_title" translatable="false">@string/lg_chip_cpu_label</string>
281 <!-- Brief sheet: goal of the "CPU" level. Sentences -->
282 <string name="lg_level_cpu_brief">Build a CPU that runs one instruction on each tick. Each instruction is a byte: the high 4 bits are the instruction number (the decoder\'s op), and the low 4 bits are the operand. The operand is a memory address, or for LDI, the number to load. On each tick, instr is the instruction stored at address pc, and data is the byte stored at address addr. Your CPU should:\n• Put the operand on addr, so memory sends back the right byte on data.\n• Run the instruction, updating the accumulator, which is shown on acc.\n• Move pc on to the next instruction, or to the operand when it jumps.\n• For STA, put acc on dout and set we to 1, so the accumulator is written to memory.\n• For HLT, set halt to 1 and stop moving pc.\nYour CPU is tested by running three real programs.</string>
283 <!-- Brief sheet: hint for the "CPU" level, shown on request. Sentences -->
284 <string name="lg_level_cpu_hint">Split instr into its two halves. Send the instruction number to a decoder, and send the operand to addr and to the v input of a PC4. Keep the accumulator in a REG8 that loads when accLoad is 1. Feed an ALU with the accumulator as a, and as b, either data or the operand, chosen by useImm. Use a ZERO8 on the accumulator to make the decoder\'s z. Finally, connect jump to the PC4\'s load, and connect NOT halt to its en.</string>
285 <!-- Level map and brief sheet: title of the "Computer" level. Short noun phrase -->
286 <string name="lg_level_computer_title">Computer</string>
287 <!-- Brief sheet: goal of the "Computer" level. Sentences -->
288 <string name="lg_level_computer_brief">Connect your CPU to a RAM16 to make a working computer. Three programs will be loaded into the RAM and run: one adds two numbers, one counts down from 5 to 0, and one multiplies 3 × 4. The outputs acc and halt should show your CPU\'s accumulator and halt signal.</string>
289 <!-- Brief sheet: hint for the "Computer" level, shown on request. Sentences -->
290 <string name="lg_level_computer_hint">Connect the CPU\'s pc to the RAM\'s iaddr, addr to daddr, dout to din, and we to we. Then connect the RAM\'s instr output to the CPU\'s instr input, and the RAM\'s dout output to the CPU\'s data input.</string>
291
292 <!-- Chip names and chip info sheet text (what each chip does, shown when a tray card is tapped). Keep pin names (like a, b, s, q, op) as they are, and write chip names exactly as you translated them in the lg_chip_*_label strings. -->
293 <!-- Chip tray and canvas: name of the NAND chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep NAND -->
294 <string name="lg_chip_nand_label">NAND</string>
295 <!-- Chip info sheet: explanation of the NAND chip. Sentences -->
296 <string name="lg_chip_nand_info">This is the gate everything else starts from. Its output o is 0 only when a and b are both 1; otherwise it is 1. Every other chip in the game can be built from NANDs alone.</string>
297 <!-- Chip tray and canvas: name of the HIGH chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep HIGH -->
298 <string name="lg_chip_high_label">HIGH</string>
299 <!-- Chip info sheet: explanation of the HIGH chip. Sentences -->
300 <string name="lg_chip_high_info">This chip has no inputs. Its output o is always 1.</string>
301 <!-- Chip tray and canvas: name of the LOW chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep LOW -->
302 <string name="lg_chip_low_label">LOW</string>
303 <!-- Chip info sheet: explanation of the LOW chip. Sentences -->
304 <string name="lg_chip_low_info">This chip has no inputs. Its output o is always 0.</string>
305 <!-- Chip tray and canvas: name of the NOT chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep NOT -->
306 <string name="lg_chip_not_label">NOT</string>
307 <!-- Chip info sheet: explanation of the NOT chip. Sentences -->
308 <string name="lg_chip_not_info">The output o is always the opposite of the input a: when a is 1, o is 0, and when a is 0, o is 1.</string>
309 <!-- Chip tray and canvas: name of the AND chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep AND -->
310 <string name="lg_chip_and_label">AND</string>
311 <!-- Chip info sheet: explanation of the AND chip. Sentences -->
312 <string name="lg_chip_and_info">The output o is 1 only when a and b are both 1. If either input is 0, o is 0.</string>
313 <!-- Chip tray and canvas: name of the OR chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep OR -->
314 <string name="lg_chip_or_label">OR</string>
315 <!-- Chip info sheet: explanation of the OR chip. Sentences -->
316 <string name="lg_chip_or_info">The output o is 1 when a is 1, when b is 1, or when both are 1. It is 0 only when both inputs are 0.</string>
317 <!-- Chip tray and canvas: name of the NOR chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep NOR -->
318 <string name="lg_chip_nor_label">NOR</string>
319 <!-- Chip info sheet: explanation of the NOR chip. Sentences -->
320 <string name="lg_chip_nor_info">This is an OR followed by a NOT, so the output o is 1 only when a and b are both 0. If you wire two NORs into each other, they can remember a bit. That circuit is called an SR latch.</string>
321 <!-- Chip tray and canvas: name of the XOR chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep XOR -->
322 <string name="lg_chip_xor_label">XOR</string>
323 <!-- Chip info sheet: explanation of the XOR chip. Sentences -->
324 <string name="lg_chip_xor_info">The output o is 1 when a and b are different, and 0 when they are the same. The name stands for \"exclusive OR\".</string>
325 <!-- Chip tray and canvas: name of the XNOR chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep XNOR -->
326 <string name="lg_chip_xnor_label">XNOR</string>
327 <!-- Chip info sheet: explanation of the XNOR chip. Sentences -->
328 <string name="lg_chip_xnor_info">The output o is 1 when a and b are the same, and 0 when they are different. It is the opposite of XOR.</string>
329 <!-- Chip tray and canvas: name of the MUX chip. Standard abbreviation, kept as is in every language -->
330 <string name="lg_chip_mux_label" translatable="false">MUX</string>
331 <!-- Chip info sheet: explanation of the MUX chip. Sentences -->
332 <string name="lg_chip_mux_info">A MUX (short for multiplexer) chooses between two inputs. When the select input s is 0, the output o copies a. When s is 1, o copies b.</string>
333 <!-- Chip tray and canvas: name of the DMUX chip. Standard abbreviation, kept as is in every language -->
334 <string name="lg_chip_dmux_label" translatable="false">DMUX</string>
335 <!-- Chip info sheet: explanation of the DMUX chip. Sentences -->
336 <string name="lg_chip_dmux_info">A DMUX does the reverse of a MUX: it sends one input to one of two outputs. When s is 0, the value of in goes to a, and when s is 1, it goes to b. The output that is not chosen stays 0.</string>
337 <!-- Chip tray and canvas: name of the DEC2 chip. Standard abbreviation, kept as is in every language -->
338 <string name="lg_chip_dec2_label" translatable="false">DEC2</string>
339 <!-- Chip info sheet: explanation of the DEC2 chip. Sentences -->
340 <string name="lg_chip_dec2_info">A decoder turns a number into a single lit-up output. Read s1 and s0 as a two-bit number from 0 to 3, with s1 as the high bit. The output with that number (y0, y1, y2 or y3) is 1, and the other three are 0.</string>
341 <!-- Chip tray and canvas: name of the SPLIT 8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep SPLIT 8 -->
342 <string name="lg_chip_split8_label">SPLIT 8</string>
343 <!-- Chip info sheet: explanation of the SPLIT8 chip. Sentences -->
344 <string name="lg_chip_split8_info">A bus is a thick wire that carries several bits at once. This chip splits the 8-bit bus x into its eight separate bits, from b0 (the lowest bit) to b7 (the highest bit).</string>
345 <!-- Chip tray and canvas: name of the JOIN 8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep JOIN 8 -->
346 <string name="lg_chip_join8_label">JOIN 8</string>
347 <!-- Chip info sheet: explanation of the JOIN8 chip. Sentences -->
348 <string name="lg_chip_join8_info">This chip combines eight separate bits into one 8-bit bus x. b0 becomes the lowest bit and b7 becomes the highest bit.</string>
349 <!-- Chip tray and canvas: name of the SPLIT 4 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep SPLIT 4 -->
350 <string name="lg_chip_split4_label">SPLIT 4</string>
351 <!-- Chip info sheet: explanation of the SPLIT4 chip. Sentences -->
352 <string name="lg_chip_split4_info">This chip splits the 4-bit bus x into its four separate bits, from b0 (the lowest bit) to b3 (the highest bit).</string>
353 <!-- Chip tray and canvas: name of the JOIN 4 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep JOIN 4 -->
354 <string name="lg_chip_join4_label">JOIN 4</string>
355 <!-- Chip info sheet: explanation of the JOIN4 chip. Sentences -->
356 <string name="lg_chip_join4_info">This chip combines four separate bits into one 4-bit bus x. b0 becomes the lowest bit and b3 becomes the highest bit.</string>
357 <!-- Chip tray and canvas: name of the NIB SPLIT chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep NIB SPLIT -->
358 <string name="lg_chip_nib_split_label">NIB SPLIT</string>
359 <!-- Chip info sheet: explanation of the NIB_SPLIT chip. Sentences -->
360 <string name="lg_chip_nib_split_info">This chip splits a byte (8 bits) into two halves of 4 bits each, called nibbles. lo gets the low 4 bits and hi gets the high 4 bits.</string>
361 <!-- Chip tray and canvas: name of the NIB JOIN chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep NIB JOIN -->
362 <string name="lg_chip_nib_join_label">NIB JOIN</string>
363 <!-- Chip info sheet: explanation of the NIB_JOIN chip. Sentences -->
364 <string name="lg_chip_nib_join_info">This chip does the reverse of NIB SPLIT. It combines a low nibble lo and a high nibble hi into one byte x.</string>
365 <!-- Chip tray and canvas: name of the NOT8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep NOT8 -->
366 <string name="lg_chip_not8_label">NOT8</string>
367 <!-- Chip info sheet: explanation of the NOT8 chip. Sentences -->
368 <string name="lg_chip_not8_info">This chip flips all eight bits of a at once, so every 1 becomes 0 and every 0 becomes 1.</string>
369 <!-- Chip tray and canvas: name of the AND8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep AND8 -->
370 <string name="lg_chip_and8_label">AND8</string>
371 <!-- Chip info sheet: explanation of the AND8 chip. Sentences -->
372 <string name="lg_chip_and8_info">This chip does an AND on each matching pair of bits in a and b. Each bit of o is 1 only where a and b both have a 1 in that position.</string>
373 <!-- Chip tray and canvas: name of the OR8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep OR8 -->
374 <string name="lg_chip_or8_label">OR8</string>
375 <!-- Chip info sheet: explanation of the OR8 chip. Sentences -->
376 <string name="lg_chip_or8_info">This chip does an OR on each matching pair of bits in a and b. Each bit of o is 1 where a, b or both have a 1 in that position.</string>
377 <!-- Chip tray and canvas: name of the XOR8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep XOR8 -->
378 <string name="lg_chip_xor8_label">XOR8</string>
379 <!-- Chip info sheet: explanation of the XOR8 chip. Sentences -->
380 <string name="lg_chip_xor8_info">This chip does an XOR on each matching pair of bits in a and b. Each bit of o is 1 where a and b have different bits in that position.</string>
381 <!-- Chip tray and canvas: name of the MUX8b chip. Standard abbreviation, kept as is in every language -->
382 <string name="lg_chip_mux8b_label" translatable="false">MUX8b</string>
383 <!-- Chip info sheet: explanation of the MUX8B chip. Sentences -->
384 <string name="lg_chip_mux8b_info">This is a MUX for whole bytes. When s is 0, o copies all 8 bits of a, and when s is 1, o copies all 8 bits of b.</string>
385 <!-- Chip tray and canvas: name of the MUX4b chip. Standard abbreviation, kept as is in every language -->
386 <string name="lg_chip_mux4b_label" translatable="false">MUX4b</string>
387 <!-- Chip info sheet: explanation of the MUX4B chip. Sentences -->
388 <string name="lg_chip_mux4b_info">This is a MUX for 4-bit buses. When s is 0, o copies all 4 bits of a, and when s is 1, o copies all 4 bits of b.</string>
389 <!-- Chip tray and canvas: name of the HALF chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep HALF -->
390 <string name="lg_chip_half_label">HALF</string>
391 <!-- Chip info sheet: explanation of the HALF chip. Sentences -->
392 <string name="lg_chip_half_info">A half adder adds two bits. The sum bit s is 1 when exactly one input is 1. The carry c is 1 when both inputs are 1, because 1 + 1 = 2, which is written 10 in binary.</string>
393 <!-- Chip tray and canvas: name of the FULL chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep FULL -->
394 <string name="lg_chip_full_label">FULL</string>
395 <!-- Chip info sheet: explanation of the FULL chip. Sentences -->
396 <string name="lg_chip_full_info">A full adder adds three bits: a, b and a carry in, cin, which comes from the column to its right. The output s is the sum bit, and cout is the carry that passes to the next column on the left.</string>
397 <!-- Chip tray and canvas: name of the ADD4 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep ADD4 -->
398 <string name="lg_chip_add4_label">ADD4</string>
399 <!-- Chip info sheet: explanation of the ADD4 chip. Sentences -->
400 <string name="lg_chip_add4_info">This chip adds two 4-bit numbers, a and b, plus a carry in, cin. The output s is the 4-bit sum. If the total is bigger than 15, it does not fit in 4 bits, so cout becomes 1 and s keeps only the low 4 bits.</string>
401 <!-- Chip tray and canvas: name of the ADD8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep ADD8 -->
402 <string name="lg_chip_add8_label">ADD8</string>
403 <!-- Chip info sheet: explanation of the ADD8 chip. Sentences -->
404 <string name="lg_chip_add8_info">This chip adds two bytes, a and b, plus a carry in, cin. The output s is the 8-bit sum. If the total is bigger than 255, it does not fit in 8 bits, so cout becomes 1 and s keeps only the low 8 bits.</string>
405 <!-- Chip tray and canvas: name of the INC4 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep INC4 -->
406 <string name="lg_chip_inc4_label">INC4</string>
407 <!-- Chip info sheet: explanation of the INC4 chip. Sentences -->
408 <string name="lg_chip_inc4_info">This chip counts up by one: the output o is a + 1. Because there are only 4 bits, 15 + 1 wraps back around to 0.</string>
409 <!-- Chip tray and canvas: name of the SUB8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep SUB8 -->
410 <string name="lg_chip_sub8_label">SUB8</string>
411 <!-- Chip info sheet: explanation of the SUB8 chip. Sentences -->
412 <string name="lg_chip_sub8_info">This chip subtracts: the output d is a − b. If the answer would go below zero, it wraps around from the top, so 0 − 1 gives 255.</string>
413 <!-- Chip tray and canvas: name of the ZERO8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep ZERO8 -->
414 <string name="lg_chip_zero8_label">ZERO8</string>
415 <!-- Chip info sheet: explanation of the ZERO8 chip. Sentences -->
416 <string name="lg_chip_zero8_info">The output z is 1 only when every bit of a is 0, which means a is the number zero. A CPU uses this to decide whether to jump.</string>
417 <!-- Chip tray and canvas: name of the ALU8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep ALU8 -->
418 <string name="lg_chip_alu8_label">ALU8</string>
419 <!-- Chip info sheet: explanation of the ALU8 chip. Sentences -->
420 <string name="lg_chip_alu8_info">ALU stands for arithmetic logic unit. It does one of four things to a and b, and op1 and op0 choose which: 00 adds them, 01 subtracts b from a, 10 ANDs each pair of bits, and 11 passes b straight through. The output o is the result, and z is 1 when o is 0.</string>
421 <!-- Chip tray and canvas: name of the DFF chip. Standard abbreviation, kept as is in every language -->
422 <string name="lg_chip_dff_label" translatable="false">DFF</string>
423 <!-- Chip info sheet: explanation of the DFF chip. Sentences -->
424 <string name="lg_chip_dff_info">The DFF (D flip-flop) is the basic memory chip. Its output q always shows the bit it has stored. On every tick of the clock, it stores whatever its input d is at that moment, so q always shows d from one tick earlier. Because q only changes on a tick, you can safely loop a DFF\'s output back into its own input.</string>
425 <!-- Chip tray and canvas: name of the DFF4 chip. Standard abbreviation, kept as is in every language -->
426 <string name="lg_chip_dff4_label" translatable="false">DFF4</string>
427 <!-- Chip info sheet: explanation of the DFF4 chip. Sentences -->
428 <string name="lg_chip_dff4_info">This is four DFFs in one chip. On every tick it stores the 4-bit number on d, and q shows the number stored on the tick before.</string>
429 <!-- Chip tray and canvas: name of the DFF8 chip. Standard abbreviation, kept as is in every language -->
430 <string name="lg_chip_dff8_label" translatable="false">DFF8</string>
431 <!-- Chip info sheet: explanation of the DFF8 chip. Sentences -->
432 <string name="lg_chip_dff8_info">This is eight DFFs in one chip. On every tick it stores the byte on d, and q shows the byte stored on the tick before.</string>
433 <!-- Chip tray and canvas: name of the BIT chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep BIT -->
434 <string name="lg_chip_bit_label">BIT</string>
435 <!-- Chip info sheet: explanation of the BIT chip. Sentences -->
436 <string name="lg_chip_bit_info">This is a 1-bit register: a DFF that you can tell when to remember. On each tick, if load is 1, it stores the bit on d. If load is 0, it keeps the bit it already has. q always shows the stored bit.</string>
437 <!-- Chip tray and canvas: name of the REG8 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep REG8 -->
438 <string name="lg_chip_reg8_label">REG8</string>
439 <!-- Chip info sheet: explanation of the REG8 chip. Sentences -->
440 <string name="lg_chip_reg8_info">This is an 8-bit register. On each tick, if load is 1, it stores the byte on d. If load is 0, it keeps the byte it already has. q always shows the stored byte.</string>
441 <!-- Chip tray and canvas: name of the PC4 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep PC4 -->
442 <string name="lg_chip_pc4_label">PC4</string>
443 <!-- Chip info sheet: explanation of the PC4 chip. Sentences -->
444 <string name="lg_chip_pc4_info">The program counter keeps track of which instruction a CPU runs next, and pc shows the current count. On each tick, if load is 1, it jumps to the number on v. Otherwise, if en is 1, it counts up by one, wrapping from 15 back to 0. Otherwise, it stays the same.</string>
445 <!-- Chip tray and canvas: name of the RAM4 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep RAM4 -->
446 <string name="lg_chip_ram4_label">RAM4</string>
447 <!-- Chip info sheet: explanation of the RAM4 chip. Sentences -->
448 <string name="lg_chip_ram4_info">This chip is four bytes of memory, numbered 0 to 3. The inputs a1 and a0 form the address of one byte, with a1 as the high bit, and dout always shows the byte stored there. On each tick, if we (write enable) is 1, the byte on din is saved at that address.</string>
449 <!-- Chip tray and canvas: name of the RAM16 chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep RAM16 -->
450 <string name="lg_chip_ram16_label">RAM16</string>
451 <!-- Chip info sheet: explanation of the RAM16 chip. Sentences -->
452 <string name="lg_chip_ram16_info">This chip is sixteen bytes of memory that can be read in two places at once. instr always shows the byte at address iaddr, and dout always shows the byte at address daddr. On each tick, if we (write enable) is 1, the byte on din is saved at address daddr. A CPU uses one address to fetch instructions and the other to read and write data.</string>
453 <!-- Chip tray and canvas: name of the DECODER chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep DECODER -->
454 <string name="lg_chip_decoder_label">DECODER</string>
455 <!-- Chip info sheet: explanation of the DECODER chip. Sentences -->
456 <string name="lg_chip_decoder_info">The instruction decoder reads the instruction number op and the zero flag z, and works out which parts of the CPU should act on this tick. Its outputs are:\n• aluOp1 and aluOp0: which operation the ALU does (00 adds, 01 subtracts, 11 passes b through).\n• accLoad: 1 when the ALU\'s result should be stored in the accumulator.\n• memWrite: 1 when the accumulator should be written to memory.\n• useImm: 1 when the ALU should use the number inside the instruction instead of a byte from memory.\n• jump: 1 when the program counter should jump to a new address.\n• halt: 1 when the program has finished.</string>
457 <!-- Chip tray and canvas: name of the CPU chip, printed on a small box. Keep it very short; use the abbreviation people in your language use for this logic chip, or keep CPU -->
458 <string name="lg_chip_cpu_label">CPU</string>
459 <!-- Chip info sheet: explanation of the CPU chip. Sentences -->
460 <string name="lg_chip_cpu_info">This is a complete processor. On each tick it runs the instruction on instr, using data, the byte that memory sends back. Its outputs are:\n• pc: the address of the instruction being run.\n• addr: the memory address this instruction reads from or writes to.\n• dout and we: when we is 1, the byte on dout should be written to memory.\n• acc: the accumulator, which holds the number the CPU is working on.\n• halt: 1 when the program has finished.</string>
461
462 <!-- Bottom bar: tab holding the level map. Short noun -->
463 <string name="lg_tab_computer">Computer</string>
464 <!-- Bottom bar: tab holding the player's own components. Short noun -->
465 <string name="lg_tab_sandbox">Sandbox</string>
466 <!-- Sandbox list: title. Short noun -->
467 <string name="lg_sandbox_title">Sandbox</string>
468 <!-- Sandbox list: line under the title. Sentence -->
469 <string name="lg_sandbox_tagline">Build your own chips from anything you have unlocked, then use them anywhere.</string>
470 <!-- Sandbox list: shown when there are no components yet. Sentence -->
471 <string name="lg_sandbox_empty">No components yet. Tap New component to build your first one.</string>
472 <!-- Sandbox list: floating button that creates a component. Short verb phrase -->
473 <string name="lg_new_component">New component</string>
474 <!-- Sandbox list: default name for a newly created component -->
475 <string name="lg_component_default_name">Component <xliff:g id="number" example="3">%1$d</xliff:g></string>
476 <!-- Sandbox list: default group a new component is filed under. Short noun phrase -->
477 <string name="lg_component_default_group">My components</string>
478 <!-- Sandbox list card: pin and cost summary. Quantity is the output count (%2$d); "in"/"out"/"NAND" are invariant abbreviations, so the forms are identical -->
479 <plurals name="lg_component_summary">
480 <item quantity="one"><xliff:g id="inputs" example="2">%1$d</xliff:g> in · <xliff:g id="outputs" example="1">%2$d</xliff:g> out · <xliff:g id="cost" example="4">%3$d</xliff:g> NAND</item>
481 <item quantity="other"><xliff:g id="inputs" example="2">%1$d</xliff:g> in · <xliff:g id="outputs" example="1">%2$d</xliff:g> out · <xliff:g id="cost" example="4">%3$d</xliff:g> NAND</item>
482 </plurals>
483 <!-- Sandbox list card: summary when the component cannot be built because it contains itself. Quantity is the output count (%2$d) -->
484 <plurals name="lg_component_broken">
485 <item quantity="one"><xliff:g id="inputs" example="2">%1$d</xliff:g> in · <xliff:g id="outputs" example="1">%2$d</xliff:g> out · contains itself</item>
486 <item quantity="other"><xliff:g id="inputs" example="2">%1$d</xliff:g> in · <xliff:g id="outputs" example="1">%2$d</xliff:g> out · contains itself</item>
487 </plurals>
488 <!-- Component sheet: name field label -->
489 <string name="lg_component_name">Name</string>
490 <!-- Component sheet: group field label -->
491 <string name="lg_component_group">Group</string>
492 <!-- Component sheet: explains how pins work. Sentences -->
493 <string name="lg_component_pins_hint">Drag inputs and outputs onto the board from the Pins tab. Their order from top to bottom is their order on the chip.</string>
494 <!-- Component sheet: heading over the list of pins -->
495 <string name="lg_component_pins">Pins</string>
496 <!-- Component sheet: shown when the component has no pins yet. Sentence -->
497 <string name="lg_component_no_pins">No pins yet.</string>
498 <!-- Component sheet: delete button -->
499 <string name="lg_component_delete">Delete component</string>
500 <!-- Delete component dialog: title -->
501 <string name="lg_component_delete_title">Delete <xliff:g id="name" example="Adder">%1$s</xliff:g>?</string>
502 <!-- Delete component dialog: message. Sentence -->
503 <string name="lg_component_delete_message">Any copies of it in your other components and levels will be removed too.</string>
504 <!-- Component sheet: content description of the button deleting one pin -->
505 <string name="lg_cd_delete_pin">Delete pin <xliff:g id="name" example="a">%1$s</xliff:g></string>
506 <!-- Sandbox editor: status line under the board -->
507 <string name="lg_sandbox_status">Sandbox · tap an input on the board to flip it.</string>
508 <!-- Chip tray: tab for board inputs and outputs. Short noun -->
509 <string name="lg_group_pins">Pins</string>
510 <!-- Chip tray and canvas: name of a board input placed from the tray. Short noun -->
511 <string name="lg_chip_input_label">IN</string>
512 <!-- Chip info sheet: explanation of a board input. Sentences -->
513 <string name="lg_chip_input_info">An input of your component. On the finished chip it becomes an input pin. Tap it on the board to set its value while testing.</string>
514 <!-- Chip tray and canvas: name of a board output placed from the tray. Short noun -->
515 <string name="lg_chip_output_label">OUT</string>
516 <!-- Chip info sheet: explanation of a board output. Sentences -->
517 <string name="lg_chip_output_info">An output of your component. On the finished chip it becomes an output pin.</string>
518 <!-- Chip info sheet: shown for a component the player built. Sentence -->
519 <string name="lg_chip_custom_info">A component you built in the sandbox, filed under <xliff:g id="group" example="Adders">%1$s</xliff:g>.</string>
520 <!-- Editor: TalkBack description of the circuit board. %1$s = gate count e.g. "3 gates", %2$s = wire count e.g. "4 wires" -->
521 <string name="lg_cd_board">Circuit board, <xliff:g id="gates" example="3 gates">%1$s</xliff:g> and <xliff:g id="wires" example="4 wires">%2$s</xliff:g>.</string>
522 <!-- Editor: TalkBack, number of gates on the board. %d = count -->
523 <plurals name="lg_cd_board_gates">
524 <item quantity="one"><xliff:g id="count" example="1">%d</xliff:g> gate</item>
525 <item quantity="other"><xliff:g id="count" example="3">%d</xliff:g> gates</item>
526 </plurals>
527 <!-- Editor: TalkBack, number of wires on the board. %d = count -->
528 <plurals name="lg_cd_board_wires">
529 <item quantity="one"><xliff:g id="count" example="1">%d</xliff:g> wire</item>
530 <item quantity="other"><xliff:g id="count" example="4">%d</xliff:g> wires</item>
531 </plurals>
532 <!-- Editor: TalkBack list of the board inputs and their values. %1$s = list e.g. "a = 0, b = 1" -->
533 <string name="lg_cd_board_inputs">Inputs: <xliff:g id="list" example="a = 0, b = 1">%1$s</xliff:g>.</string>
534 <!-- Editor: TalkBack list of the board outputs and their values. %1$s = list e.g. "out = 1" -->
535 <string name="lg_cd_board_outputs">Outputs: <xliff:g id="list" example="out = 1">%1$s</xliff:g>.</string>
536 <!-- Editor: TalkBack, one pin and its value. %1$s = pin name e.g. a, %2$s = value e.g. 1 or 0x3F -->
537 <string name="lg_cd_pin_value"><xliff:g id="name" example="a">%1$s</xliff:g> = <xliff:g id="value" example="1">%2$s</xliff:g></string>
538 <!-- Editor: TalkBack action flipping a 1-bit input. %1$s = pin name e.g. a, %2$s = current value e.g. 0 -->
539 <string name="lg_action_toggle_input">Flip input <xliff:g id="name" example="a">%1$s</xliff:g> (now <xliff:g id="value" example="0">%2$s</xliff:g>)</string>
540 <!-- Editor: TalkBack action opening the value dialog of a bus input. %1$s = pin name e.g. a, %2$s = current value e.g. 0x3F -->
541 <string name="lg_action_set_input">Set input <xliff:g id="name" example="a">%1$s</xliff:g> (now <xliff:g id="value" example="0x3F">%2$s</xliff:g>)</string>
542 <!-- Test panel: TalkBack description of a passing test row. %1$s = row title e.g. "1 OR 1 = 1", %2$s = outputs the circuit gave e.g. 1 -->
543 <string name="lg_cd_case_pass"><xliff:g id="title" example="1 OR 1 = 1">%1$s</xliff:g>: passed, got <xliff:g id="actual" example="1">%2$s</xliff:g></string>
544 <!-- Test panel: TalkBack description of a failing test row. %1$s = row title e.g. "1 OR 1 = 1", %2$s = outputs the circuit gave e.g. 0 -->
545 <string name="lg_cd_case_fail"><xliff:g id="title" example="1 OR 1 = 1">%1$s</xliff:g>: failed, got <xliff:g id="actual" example="0">%2$s</xliff:g></string>
546</resources>